1 package test1; 2 3 public class FieldInit2 { 4 public static int counter = 0; 5 public static int loop = 3; 6 get(Object obj)7 public static int get(Object obj) throws Exception { 8 throw new Exception(); 9 } 10 FieldInit2()11 public FieldInit2() { 12 try { 13 do { 14 --loop; 15 } while (loop > 0); 16 } 17 catch (Exception e) { 18 System.out.println("FieldInit2: catch"); 19 } 20 } 21 } 22