問題詳情

第7題SCJP 6.0 認證教戰手冊 黃彬華著 碁峰出版4Given:1. public class Breaker2{2. static String o = "";3. public static void main(String[] args){4. z:5. for(int x=2; x<7; x++){6. if(x == 3) continue;7. if(x == 5) break z;8. o = o + x;9. }10. System.out.println(o);11. }12. }What is the result?
(A) 2
(B) 24
(C) 234
(D) 246
(E) 2346F. Compilation fails.

參考答案

答案:B
難度:適中0.602941
統計:A(5),B(123),C(44),D(13),E(10)

用户評論

【用戶】sou_david0111

【年級】幼稚園下

【評論內容】1. public class Breaker2{