COMPILE TIME EXCEPTION

Compile Time Exception


  • Possible to put empty finally.

  • Empty try possible only one if exception is unchecked exception if exception is checked exception then not possible to put empty try.

  • Not put dummy catch without parameter possible. Because dummy catch is not possible because if try caught exception, than this exception make type of object this object is go to catch block but not any parameter present who understand this.

javapadho
Exception when compiler recognized
javapadho
Exception when class not found
javapadho
Exception when location not passes