Checked exceptions in java
It is up to the programmers to be civilized, and specify or catch the exceptions. In Java exceptions under Error and Run time Exception classes are unchecked exceptions, everything else under throw able is checked. ... The compiler allows it to compile, because Arithmetic Exception is an unchecked exception.
No comments:
Post a Comment