QUESTION 31자격증/OCJP_ExamC2018. 7. 24. 03:34
Table of Contents
반응형
QUESTION 31Given:11. public void go(int x) {12. assert (x > 0);13. switch(x) {14. case 2: ;15. default: assert false;16. }17. }18. private void go2(int x) { assert (x < 0); }Which statement is true?A. All of the assert statements are used appropriately.B. Only the assert statement on line 12 is used appropriately.C. Only the assert statement on line 15 is used appropriately.D. Only the assert statement on line 18 is used appropriately.E. Only the assert statements on lines 12 and 15 are used appropriately.F. Only the assert statements on lines 12 and 18 are used appropriately.G. Only the assert statements on lines 15 and 18 are used appropriately.Solution : G
반응형
'자격증 > OCJP_ExamC' 카테고리의 다른 글
QUESTION 33 (0) | 2018.07.24 |
---|---|
QUESTION 32 (0) | 2018.07.24 |
QUESTION 30 (0) | 2018.07.24 |
QUESTION 29 (0) | 2018.07.24 |
QUESTION 28 (0) | 2018.07.24 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상