black

SCJP程序员认证考试

登录

多项选择题

1. int I=1, j=0 
2.   
3. switch(i)  { 
4. case 2: 
5. j+=6; 
6.   
7. case 4: 
8. j+=1; 
9.   
10. default: 
11. j +=2; 
12.   
13. case 0: 
14. j +=4; 
15. } 
16.     
What is the value of j at line 16?()

A. 0
B. 1
C. 2
D. 4
E. 6

相关考题

单项选择题 public class WhileFoo {  public static void main (String []args)   {  int x= 1, y = 6;  while (y--)  {x--;}  system.out.printIn(“x=” + x “y =” + y);  }  }   What is the result?()

单项选择题 public class X {   public static void main (String[] args)  {   byte b = 127;   byte c = 126;   byte d = b + c;   }  }   Which statement is true?()

单项选择题 1. public class X {  2. public static void main (String[]args)   {  3. int [] a = new int [1]  4. modify(a);  5. System.out.printIn(a[0]);  6. }  7.    8. public static void modify (int[] a)  {  9.   a[0] ++;  10.    } 11. }       What is the result?()

All Rights Reserved 版权所有©建筑考试题库(jzkao.com)

备案号:湘ICP备2020024380号-3