"SCJP 1.6版考題 007" 修訂間的差異
出自 陳富國維基館
(新頁面: 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. ...) |
(無差異)
|
於 2013年3月30日 (六) 08:59 的最新修訂
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.
解答
Ans: B
解說: 無
| ||||||||||||||||||||