hi,
Can anybody give me the detailed, elborated difference between checked exception and unchecked exception.As per my knowledge is concernerd i know this much:the checked exceptionare checked at compile time and unchecked at runctime. and one more thing unchecked exception requeries try & catch block.
Pls guide correct me if i am wrong.I got this doubt when i was doing this
public class CheckValues
{
public static void main(String[] args)
{
int a=100;
a /=0;
System.out.println("the value of a " + a);
}
}
1. Compile time error : ArithmeticException / by zero
2. Run time error: ArithmeticException / by zero.
Regards
Prasad
------------------
Can anybody give me the detailed, elborated difference between checked exception and unchecked exception.As per my knowledge is concernerd i know this much:the checked exceptionare checked at compile time and unchecked at runctime. and one more thing unchecked exception requeries try & catch block.
Pls guide correct me if i am wrong.I got this doubt when i was doing this
public class CheckValues
{
public static void main(String[] args)
{
int a=100;
a /=0;
System.out.println("the value of a " + a);
}
}
1. Compile time error : ArithmeticException / by zero
2. Run time error: ArithmeticException / by zero.
Regards
Prasad
------------------