QUESTION 16자격증/OCJP_ExamC2018. 7. 21. 18:27
Table of Contents
반응형
QUESTION 16Given:1. class TestA {2. public void start() { System.out.println("TestA"); }3. }4. public class TestB extends TestA {5. public void start() { System.out.println("TestB"); }6. public static void main(String[] args) {7. ((TestA)new TestB()).start();8. }9. }What is the result?A. TestAB. TestBC. Compilation fails.D. An exception is thrown at runtime.Solution : B
반응형
'자격증 > OCJP_ExamC' 카테고리의 다른 글
QUESTION 18 (0) | 2018.07.24 |
---|---|
QUESTION 17 (0) | 2018.07.21 |
QUESTION 15 (0) | 2018.07.21 |
QUESTION 14 (0) | 2018.07.21 |
QUESTION 13 (0) | 2018.07.21 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상