what is the difference between exception and error job java interview question

1,562 views · Published 19 November 2012 · 3:31 · Indexed 31 October 2026

Channel: Interview DOT · 2012 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. what is the difference between exception and error job java interview question

You can submit your resume for right Job
http://www.interviewdot.com/upload-resume/uploadresume.htm
For more Interview questions and answers  - logon to www.InterviewDot.com
http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com


What is the difference between exception and error ? Java Interview Questions and Answers ?

Exceptions :

Exceptions are an abnormal conditions that can be handled or controlled by the developer and programmer

Exceptions are related to the application level issues and it is possible to recover.

Example : FileNotFoundException,etc.

Errors :
Error are those conditions that cannot be handled or controlled by the programmer or developer. 

Errors should never be created, thrown, caught, or repaired. They are usually beyond the scope of your application code such as 'out of memory'. Even if you caught an out of memory error, you wouldn't likely be in a better place than the system garbage collector to fix this, so its better to let the system crash and repair the root cause.

When Error occur then our program stops and do not run.
Example : Out of memory error,etc.

You can submit your resume for right Job
http://www.interviewdot.com/upload-resume/uploadresume.htm
For more Interview questions and answers  - logon to www.InterviewDot.com
http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com

More from this channel