【問卷-英文學習功能需求】只要填寫就能獲得500Y,結束時間 2024/06/03 12:00。 前往查看

OJCP(SCJP)題庫下載題庫

上一題
第7題 SCJP 6.0 認證教戰手冊 黃彬華著 碁峰出版 4 Given: 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) 2346 F. Compilation fails.


答案:登入後觀看
難度: 簡單
1F
sou_david0111 幼兒園下 (2016/09/01)
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) 2346 F. Compilation fails.


第7題 SCJP 6.0 認證教戰手冊 黃彬華著 碁峰出版 4 Give..-阿摩線上測驗