/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author STUDENT */ import java.io.*; public class trycatch { /** * @param args the command line arguments */ public static void main(String[] args)throws IOException { int value =5; String xval="a"; try{ for(int current =1; current<=10; current++){ value =value/0; } }catch(Exception e){ System.out.println(" error: "+e); }finally{ System.out.println("Ponki is the man"); } System.out.println("Value = " +value); } }