Program to understand java Exception



public class JavaExceptionExample
{  
       
public static void main(String args[]){  
   try{  
      int data=50/0;  
   }catch(ArithmeticException e){System.out.println(e);}  
   System.out.println("rest of the code...");  

}  

Comments