Java / Exception
Difference between Error and Exception in Java.
An error is an irrecoverable condition occurring at runtime, for example, OutOfMemory error. These JVM errors can not be fixed at runtime. Though an error can be caught in catch block, the execution of application will halt as errors are not recoverable.
An Exception could be handled by using either try-catch block or throwing exception back to caller.
More Related questions...