finally block
public class A {
public static void main(String[] args) {
System.out.println(new A().m());
}
public int m(){
try {
throw new Exception();
} catch (Exception e) {
return 0;
}finally{
return 1;
}
}
}
what will be the output of this????
public static void main(String[] args) {
System.out.println(new A().m());
}
public int m(){
try {
throw new Exception();
} catch (Exception e) {
return 0;
}finally{
return 1;
}
}
}
what will be the output of this????
Comments
Post a Comment