public class AQuestion { public static void main(String args[]) { System.out.println("Before Try"); try { } catch(java.io.IOException t) { System.out.println("Inside Catch"); } System.out.println("At the End"); } }
Dear sir in the above code it is an compile time error that try is not throwing IOException although when i m using in catch That ArrayIndexOutOfBoundsException no problem at all why?