QUESTION 51자격증/OCJP_ExamB2018. 7. 13. 21:03
Table of Contents
반응형
QUESTION 51Given:1. public class BuildStuff {2. public static void main(String[] args) {3. Boolean test = new Boolean(true);4. Integer x = 343;5. Integer y = new BuildStuff().go(test, x);6. System.out.println(y);7. }8. int go(Boolean b, int i) {9. if(b) return (i/7);10. return (i/49);11. }12. }What is the result?A. 7B. 49C. 343D. Compilation fails.E. An exception is thrown at runtime.Solution : B
반응형
'자격증 > OCJP_ExamB' 카테고리의 다른 글
QUESTION 53 (0) | 2018.07.13 |
---|---|
QUESTION 52 (0) | 2018.07.13 |
QUESTION 50 (0) | 2018.07.13 |
QUESTION 49 (0) | 2018.07.13 |
QUESTION 48 (0) | 2018.07.13 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상