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
how to split string in java?
What restrictions are placed on method overloading?
Define Multiprogramming and Multiprocessing in java.
What is type safety in java?
What is OOP's Terms with explanation?
how to create constants in java?
Explain the difference between association, aggregation and inheritance relationships.
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
Explain the use of javap tool.
what are three ways in which a thread can enter the waiting state? : Java thread
What is thread life cycle?
Can we call the run() method instead of start()?
What if constructor is protected in java?
What does the “static” keyword mean? Can you override private or static method in java?
What is nan inf?