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

Comments

Popular posts from this blog

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

TCP Ports list

Problem Solving: Allotment calculator