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.

TryWorksLikeEnvironment.java 291B

1234567891011121314151617
  1. import java.io.*;
  2. public class TryWorksLikeEnvironment {
  3. static int i;
  4. public static void main(String[] args) {
  5. try {
  6. foo();
  7. try {
  8. i++;
  9. } finally {
  10. i++;
  11. }
  12. } catch (FileNotFoundException e) {
  13. }
  14. }
  15. static void foo() throws FileNotFoundException {}
  16. }