Java program for default exception handling

 class ThrowExcep

{

public static void main(String ar[])

{

String str = null;

System.out.println(str.length());

}

}



OUTPUT




Comments