Thursday, June 9, 2011

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????

No comments:

Post a Comment

Let's try to build scrum masters/project managers/software architects/even a company with training AI models

The concept: The basic concept is to build trained AI model for each role separately in scalable fashion within a private cloud. As an examp...