Explain Cheked and Uncheked exceptions.
Answers
Answered by
0
In Java exceptions under Error and RuntimeException classes are unchecked exceptions, everything else under throwable is checked. Consider the following Java program. It compiles fine, but it throws ArithmeticException when run. The compiler allows it to compile, because ArithmeticException is an unchecked exception.
Similar questions
Science,
6 months ago
Math,
6 months ago
Science,
6 months ago
Physics,
1 year ago
Psychology,
1 year ago