Answer Posted / shahnawaz ali shah
Exception is coverable
Error is uncoverable
Exception can be handled
and Error can not be handled
Exceptio is an run time error when an abnormal condition is
occured the jvm detect it and make the object of that
abnormal condition and throws it to its own class and that
object is catched by catched block and catch block handled it
Error is the compile time error not runtime and it is not
covered it is only fixed by a programer.
Note
When Error occur then our programe stops and donot run
but If exception occur then nothing happining only try block
will be suspended and after that if any code is written that
will be executed properly means our system or programe work
properly.
| Is This Answer Correct ? | 116 Yes | 17 No |
Post New Answer View All Answers
what is optional in java 8?
Difference between method overloading and method overriding in java ?
What are the 2 types of java programs?
Write a factorial program using recursion in java?
What are the differences between getting and load method?
What is an immutable class?
How can you set an applet’s height and width as a percentage?
Can we declare a constructor as final?
What should I import for arraylist in java?
What is independent and dependent variables in research?
Is class forname reflection?
Define canvas?
What is defined as false sharing in the context of multithreading?
What are the important methods of java exception class?
what are synchronized methods and synchronized statements? : Java thread