black

Java认证考试综合练习

登录

多项选择题

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]);   }   }   结果为:()

单项选择题 class MyApp{   public static void main(String[] args){  int age;   System.out.println(“age=”+age);  }  }   执行上述代码后输出的结果是哪项?()

单项选择题 class Beta {   public static void main(String [] args) {   Integer x = new Integer(6) * 7;   if (x != 42) {   System.out.print("42 ");   } else if (x.equals(42)) {   System.out.print("dot = ");   } else {   System.out.print("done");   } } }   结果为:()

All Rights Reserved 版权所有©求知题库网库(csqiuzhi.com)

备案号:湘ICP备14005140号-1

经营许可证号:湘B2-20140064