You are here: Home / Topics / Default Exception Handler of JVM

Default Exception Handler of JVM

Filed under: Java on 2023-09-19 06:43:44

// Simple  Program without Exception Handling and 
// use of Default Handler of JVM.

class  DefaultException
public static void main(String args[ ]) 
 int  d = 0;
 int  a = 10 / d;
 // here JVM automatiically handle exaception


Exception in thread "main" java.lang.ArithmeticException
 at DefaultException.main(

About Author:
Shyam Dubey     View Profile
If you are good in any field. Just share your knowledge with others.