// 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
}
}
Output:Exception in thread "main" java.lang.ArithmeticException
at DefaultException.main(DefaultException.java:20)