QUESTION 22자격증/OCJP_ExamB2018. 7. 10. 15:29
Table of Contents
반응형
QUESTION 22
Given:
1. class X {
2. X() {
System.out.print(1); }
3. X(int x) {
4. this();
System.out.print(2);
5. }
6. }
7. public class Y extends X {
8. Y() { super(6);
System.out.print(3); }
9. Y(int y) {
10. this();
System.out.println(4);
11. }
12. public static void main(String[] a) { new Y(5); }
13. }
What is the result?
A. 13
B. 134
C. 1234
D. 2134
E. 2143
F. 4321
Solution : C
반응형
'자격증 > OCJP_ExamB' 카테고리의 다른 글
QUESTION 24 (0) | 2018.07.10 |
---|---|
QUESTION 23 (0) | 2018.07.10 |
QUESTION 21 (0) | 2018.07.10 |
QUESTION 20 (0) | 2018.07.09 |
QUESTION 19 (0) | 2018.07.09 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상