QUESTION 3자격증/OCJP_ExamD2018. 7. 26. 19:59
Table of Contents
반응형
QUESTION 3Click the Exhibit button.01. public class A {02. public String doit(int x, int y){03. return "a";04. }05.06. public String doit(int... vals){07. return "b";08. }09. }Given:25. A a = new A();26. System.out.println(a.doit(4, 5));What is the result?A. Line 26 prints a to System.out.B. Line 26 prints b to System.out.C. An exception is thrown at line 26 at runtime.D. Compilation of class A will fail due to an error in line 6.Solution : A
plus imformation
A의 인스턴스 a --> A의 doit 변수 실행 -- > return 값 a
반응형
'자격증 > OCJP_ExamD' 카테고리의 다른 글
QUESTION 6 (0) | 2018.07.29 |
---|---|
QUESTION 5 (0) | 2018.07.29 |
QUESTION 4 (0) | 2018.07.26 |
QUESTION 2 (0) | 2018.07.26 |
QUESTION 1 (0) | 2018.07.26 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상