A.
class A1{ int i=0; private void method() { System.out.println(i); } }
B.
class A { int i = 0; } class B { private void method() { System.out.println(A.i); }
C.
class A{ public int i=0; public static void method() { System.out.println(new A().i); } }
D.
class A{ public static int i=0; public static void method() { System.out.println(i); } }