I have some problem in that code...
import java.io.*; class Demo{ public static void main(String args[]){ try{ // }catch(ArithmeticException e){ } //---------------------------- try{ // }catch(InterruptedException e){ //Line 1 } //------------------------------ try{ // }catch(Exception e){ //Line 2**** } } }
In that code only Line 1 is compile error.But I think Line 2 also compile error.Because InterruptedException and Exception are the checked Exception in compile time....Please help me to solve that..