QUESTION 30자격증/OCJP_ExamC2018. 7. 24. 03:30
Table of Contents
반응형
QUESTION 30Given:1. public class Breaker {2. static String o = "";3.4. public static void main(String[] args) {5. z: o = o + 2;6. for (int x = 3; x < 8; x++) {7. if (x == 4)8. break;9. if (x == 6)10. break z;11. o = o + x;12. }13. System.out.println(o);14. }15. }What is the result?A. 23B. 234C. 235D. 2345E. 2357F. 23457G. Compilation fails.Solution : G
plus imformation
Main.java:10: undefined label: z
break z;
^ 1 error
반응형
'자격증 > OCJP_ExamC' 카테고리의 다른 글
QUESTION 32 (0) | 2018.07.24 |
---|---|
QUESTION 31 (0) | 2018.07.24 |
QUESTION 29 (0) | 2018.07.24 |
QUESTION 28 (0) | 2018.07.24 |
QUESTION 27 (0) | 2018.07.24 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상