QUESTION 55자격증/OCJP_ExamA2018. 7. 8. 21:20
Table of Contents
반응형
QUESTION 55
Given:
6. public class Threads2 implements Runnable {
7.
8. public void run() {
9. System.out.println("run.");
10. throw new RuntimeException("Problem");
11. }
12. public static void main(String[] args) {
13. Thread t = new Thread(new Threads2());
14. t.start();
15. System.out.println("End of method.");
16. }
17. }
Which two can be results? (Choose two.)
A. java.lang.RuntimeException: Problem
B. run. java.lang.RuntimeException: Problem
C. End of method. java.lang.RuntimeException: Problem
D. End of method. run. java.lang.RuntimeException: Problem
E. run. java.lang.RuntimeException: Problem End of method.
Solution : DE
반응형
'자격증 > OCJP_ExamA' 카테고리의 다른 글
QUESTION 57 (0) | 2018.07.08 |
---|---|
QUESTION 56 (0) | 2018.07.08 |
QUESTION 54 (0) | 2018.07.08 |
QUESTION 53 (0) | 2018.07.08 |
QUESTION 52 (0) | 2018.07.08 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상