black

SCJP程序员认证考试

登录

单项选择题

Given the following code:    
1) public void modify() {    
2) int i, j, k;    
3) i = 100;    
4) while ( i > 0 ) {    
5) j = i * 2; 
6) System.out.println (" The value of j is " + j );    
7) k = k + 1;    
8) i--;    
9) } 
10) } 
Which line might cause an error during compilation?()   

A. line 4
B. line 6
C. line 7
D. line 8

相关考题

多项选择题 IntheJavaAPIdocumentationwhichsectionsareincludedinaclassdocument?()

多项选择题 Whichofthefollowingstatementsaboutdeclarationaretrue?()

单项选择题 Given the following code:    public class Test {  void printValue(int m){  do {  System.out.println("The value is"+m);     }  while( --m > 10 )     }  public static void main(String arg[]) {     int i=10;  Test t= new Test();     t.printValue(i);     }     }  Which will be output?()

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

备案号:湘ICP备2020024380号-3