Computer Science, asked by jskarrey5686, 11 months ago

Explain Cheked and Uncheked exceptions.

Answers

Answered by shivanshusingh97
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