What is exception and error? and what is the difference
between them?
Answer Posted / krishnakanth
Exception and Errors are two subclasses of Throwable Class.
Exception:-Exception can be devided into two other groups.
Checked Exceptions and Unchecked Exceptions.
Checked Exceptions are the User defined exceptions and it
must be caught by the user.(Eg:IOException etc.)
Unchecked Exceptions are the subclasses of Runtime
Exception.(Eg:FileNotFound Exception,Division by Zero etc.)
Errors:-Errors are the external interrupts that terminates
the execution of the program.That means Errors ate out of
user control.It can't be catched by the user.(Eg:
OutOfMemory Exception etc.)
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Does every java program need a main?
What are identifiers in java?
Should you use singleton pattern?
What is parse method?
if u open login & logout ,how can udisplay the timelogin & logout members ?
What is the difference between the paint() and repaint() methods?
what is anonymous class in java?
Can we override final method?
Why are variables important in research?
Define an applet in java?
How to obtain a performance profile of java program
Difference between overriding and overloading in java?
What is lifetime variable?
Is 0 true or is 1 true?
What is vector?