black

SCJP程序员认证考试

登录

单项选择题

1. public class test ( 
2. public static void main(string args[]) { 
3. int 1= 0; 
4. while (i)  { 
5. if (i==4) { 
6. break; 
7. } 
8. ++i; 
9. } 
10.   
11. } 
12. )  
What is the value of i at line 10?()

A. 0
B. 3
C. 4
D. 5
E. The code will not compile.

相关考题

单项选择题 public class IfTest (  public static void main(string[]args) {  int x = 3;  int y = 1;  if (x = y)  system.out.printIn(“Not equal”);  else  system.out.printIn(“Equal”);  }  )   What is the result?()

单项选择题 Whichstatementistruefortheclassjava.util.HashSet?()

单项选择题 Youneedtostoreelementsinacollectionthatguaranteesthatnoduplicatesarestoredandallelementscanbeaccessedinnaturalorder.Whichinterfaceprovidesthatcapability?()

All Rights Reserved 版权所有©易学考试网(yxkao.com)

备案号:湘ICP备2022003000号-3