Question of return statement in finally clause in Java
What do you think would happen?
public class Hello { public static void main(String[] args) { System.out.println("Result: " + func()); } private static int func() { try { return 1; } catch (Exception e) { return 2; } finally { return 3; } } }