QUESTION 58자격증/OCJP_ExamB2018. 7. 13. 22:03
Table of Contents
반응형
QUESTION 58Given:11. public class Test {12. public static void main(String [] args) {13. int x = 5;14. boolean b1 = true;15. boolean b2 = false;16.17. if ((x == 4) && !b2 )18. System.out.print("1 ");19. System.out.print("2 ");20. if ((b2 = true) && b1 )21. System.out.print("3 ");22. }23. }What is the result?A. 2B. 3C. 1 2D. 2 3E. 1 2 3F. Compilation fails. G. An exception is thrown at runtime.Solution : D
반응형
'자격증 > OCJP_ExamB' 카테고리의 다른 글
QUESTION 60 (0) | 2018.07.13 |
---|---|
QUESTION 59 (0) | 2018.07.13 |
QUESTION 57 (0) | 2018.07.13 |
QUESTION 56 (0) | 2018.07.13 |
QUESTION 55 (0) | 2018.07.13 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상