which order is an equivalent to “send out head line”?
第1题:
A.Line 26 prints "a" to System.out.
B.Line 26 prints "b" to System.out.
C.An exception is thrown at line 26 at runtime.
D.Compilation of class A will fail due to an error in line 6.
第2题:
给出下列的代码,哪行在编译时可能会有错误? ① public void modify() { ② int i,j,k; ③ i=100; ④ while(i>0) { ⑤ j=i*2; ⑥ System.out.println(" The value of j is"+ j); ⑦ k=k+1; ⑧ } ⑨}
A.line 4
B.line 6
C.line 7
D.line 8
第3题:
第4题:
A.CompilationofclassAfails.
B.Line28printsthevalue3toSystem.out.
C.Line28printsthevalue1toSystem.out.
D.Compilationfailsbecauseofanerroronline28.
E.Aruntimeerroroccurswhenline25executes.
第5题:
给出下列代码, ( )行在编译时可能会有错误。 ①public void modify( ){ ②int i,j,k; ⑧i=100; ④while(i>0){ ⑤j=i*2; ⑥System.out.println("The value of j is"+j); ⑦k=k+l; ⑧} ⑨}
A.line 4
B.line 6
C.line 7
D.line 8
第6题: