difference between error and exception in java
Answers
Answered by
0
The main difference between Error and Exception is the kind of error they represent. Error represent errors which are generally can not be handled and usually refer catastrophic failure
Answered by
0
Difference between error and exception in java:
Exception:
- An exception is occurred in the code which was written by the user.
- If an exception has occurred in the code we can able to recover it. So the exception is recoverable.
- Exception can be handled by using some concept called 'catch' and 'try'.
- The Exception can be classified into unchecked or checked type.
Error:
- An Error is occurred by the lack of system resources.
- But if the error is occurred in the system it can not be recoverable.
- There is no concept was formulated to perform error.
- The Error can be classified into unchecked.
- It is a serious and known problem to the java compiler.
learn more about package
Name the package of java that contains "Math" class
https://brainly.in/question/1259688
What is a package in java?
https://brainly.in/question/8351332
Similar questions
Math,
9 months ago
Math,
9 months ago
Economy,
9 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago
Economy,
1 year ago