public class TestDemo{ private int x = 2; static int y = 3; public void method(){ final int i=100; int j = 10; class Cinner{ public void mymethod(){ //Here } } } } 在Here處可以訪問的變量是哪些?()
A.x B.y C.i D.j
class Rectangle { public static void main(String [] args) { int [] x = {1,2,3}; x[1] = (x[1] 〉 1) ? x[2] : 0; System.out.println(x[1]); } } 結(jié)果為:()
A.0 B.1 C.2 D.3
class MyApp{ public static void main(String[] args){ int age; System.out.println(“age=”+age); } } 執(zhí)行上述代碼后輸出的結(jié)果是哪項(xiàng)?()
A.age=0 B.age=null C.age= D.程序編譯錯(cuò)誤