QUESTION 47자격증/OCJP_ExamB2018. 7. 13. 19:41
Table of Contents
반응형
QUESTION 47Given:11. public static void main(String[] args) {12. Integer i = new Integer(1) + new Integer(2);13. switch(i) {14. case 3: System.out.println("three"); break;15. default: System.out.println("other"); break;16. }17. }What is the result?A. threeB. otherC. An exception is thrown at runtime.D. Compilation fails because of an error on line 12.E. Compilation fails because of an error on line 13.F. Compilation fails because of an error on line 15.Solution : A
반응형
'자격증 > OCJP_ExamB' 카테고리의 다른 글
QUESTION 49 (0) | 2018.07.13 |
---|---|
QUESTION 48 (0) | 2018.07.13 |
QUESTION 46 (0) | 2018.07.13 |
QUESTION 45 (0) | 2018.07.13 |
QUESTION 44 (0) | 2018.07.13 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상