QUESTION 18자격증/OCJP_ExamB2018. 7. 9. 21:01
Table of Contents
반응형
QUESTION 18
Given:
Runnable r = new Runnable()
{
public void run()
{
System.out.print("Cat");
}
};
Thread t = new Thread(r)
{
public void run()
{
System.out.print("Dog");
}
};
t.start();
What is the result?
A. Cat
B. Dog
C. Compilation fails.
D. The code runs with no output.
E. An exception is thrown at runtime.
Solution : B
반응형
'자격증 > OCJP_ExamB' 카테고리의 다른 글
QUESTION 20 (0) | 2018.07.09 |
---|---|
QUESTION 19 (0) | 2018.07.09 |
QUESTION 17 (0) | 2018.07.09 |
QUESTION 16 (0) | 2018.07.09 |
QUESTION 15 (0) | 2018.07.09 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상