Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  try { return } finally {}

Do you know what value will be printed when following program is ran?class Test { public int aaa() { int x = 1; try { return ++x; } catch (Exception e) { } finally { ++x; } return x; } public static void main(String[] args) { Test t = new Test(); int y = t.aaa(); System.out.println(y); }}And before answering the above question, do you have answers to following questions?If there is a return statement in try block, will the finally block be executed when the return is executed?If finally will be exe...

57,062 4       JAVA JAVA INTERVIEW QUESTION