1 2 import java.lang.reflect.Modifier ; 3 class T1431r1 { 4 public static void main(String [] args) { 5 class Local {} 6 Local l = new Local(); 7 System.out.print(Modifier.isStatic(l.getClass().getModifiers())); 8 System.out.print(' '); 9 new T1431r1().foo(); 10 } 11 void foo() { 12 class Local1 {} 13 Local1 l = new Local1(); 14 System.out.print(Modifier.isStatic(l.getClass().getModifiers())); 15 } 16 } 17 | Popular Tags |