QUESTION 45자격증/OCJP_ExamB2018. 7. 13. 19:14
Table of Contents
반응형
QUESTION 45Given:static class A {void process() throws Exception {throw new Exception();}}static class B extends A{void process(){System.out.println("B");}}public static void main(String[] args) {new B().process();}What is the result?A. BB. The code runs with no output.C. Compilation fails because of an error in line 12.D. Compilation fails because of an error in line 15.E. Compilation fails because of an error in line 18.Solution : A
반응형
'자격증 > OCJP_ExamB' 카테고리의 다른 글
QUESTION 47 (0) | 2018.07.13 |
---|---|
QUESTION 46 (0) | 2018.07.13 |
QUESTION 44 (0) | 2018.07.13 |
QUESTION 43 (0) | 2018.07.13 |
QUESTION 42 (0) | 2018.07.13 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상