QUESTION 31자격증/OCJP_ExamB2018. 7. 10. 17:38
Table of Contents
반응형
QUESTION 31
Given:
09. class Line {
10. public static class Point {}
11. }
12.
13. class Triangle {
14. public Triangle(){
15. // insert code here
16. }
17. }
Which code, inserted at line 15, creates an instance of the Point class defined in Line?
A. Point p = new Point();
B. Line.Point p = new Line.Point();
C. The Point class cannot be instatiated at line 15.
D. Line l = new Line() ; l.Point p = new l.Point();
Solution : B
반응형
'자격증 > OCJP_ExamB' 카테고리의 다른 글
QUESTION 34 (0) | 2018.07.10 |
---|---|
QUESTION 32 (0) | 2018.07.10 |
QUESTION 30 (0) | 2018.07.10 |
QUESTION 29 (0) | 2018.07.10 |
QUESTION 28 (0) | 2018.07.10 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상