answersLogoWhite

0


Best Answer

Error occurs at runtime and cannot be recovered, Outofmemory is one such example. Exceptions on the other hand are due conditions which the application encounters, that can be recovered such as FileNotFound exception or IO exceptions

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between exception and error in java and explain using a program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Explain the difference between a project and a program?

The program is a set of projects, and is run by the Program Manager, who is usually higher than the Project Manager.


What is the exact difference between interrupt handling and exception handling?

interrupt handling is the process of handling a break or interrupt called by a program where as exception handling is for handling some exceptional conditions that'll occur when a program is running


What is the difference between service and program?


What is the What is the difference between program and program?

Program is the US spelling.Programme is the UK spelling.


What is catch net?

When an exception occurs in program execution. Such as 1/0 or divide by zero exception. The program must catch the exception or the program will crash. Although handling of the exception or solution is not necessary.


What is the difference between process and program?

nothing


What is the difference between curriculum and educational program?

Curriculum is to study. Program is to train.


Differences between audit plan and audit program?

difference between audit program audit & note book


What is the difference between a program and a procces?

the letters after pro


Can exception handling resolve the abnormal flow of a program?

An exception is abnormal program flow, so handling the exception is the very definition of resolving the abnormality.


A program to explain the Exception Handling mechanisms in Java using the keywords try catch and finally?

Here is a code snippet illustrating exception handling: try { int a= 3 / 0 ; } catch ( ArithmeticException e ) { System.out.println ("An ArithmeticException has occured"); } finally { // some code }


What is a difference between operation system and application program?

it is a thing . believe me