You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NestedFinally.java 340B

12345678910111213141516171819202122
  1. public class NestedFinally {
  2. public static void main(String[] args) {
  3. m(3);
  4. }
  5. public static Object m(int key) {
  6. try {
  7. int x = 3;
  8. int y = 4;
  9. int i = 5;
  10. try {
  11. return null;
  12. } finally {
  13. i++;
  14. }
  15. } finally {
  16. Object x = null;
  17. Object y = null;
  18. Object i = null;
  19. key++;
  20. }
  21. }
  22. }