public class exception
2 {
3 public static void main(
String args[])
4 {
5 System.out.println("A");
6 try
7 {
8 return;
9 }
10 catch(Exception e)
11 {
12 System.out.println("B");
13 }
14 System.out.println("C");
15 }
16 }
It does compile?
The explanation from the answer isnt sufficient..
If the return stmt is just before System.out.println("c") it wouldn't compile..(This is clear to me since the stmt is unreachable...)
can some help me to clarify it please?
Ragu