QUESTION 19자격증/OCJP_ExamC2018. 7. 24. 01:06
Table of Contents
반응형
QUESTION 19Given:foo and bar are public references available to many other threads.foo refers to a Thread and bar is an Object.The thread foo is currently executing bar.wait().From another thread, what provides the most reliable way to ensure that foo will stop executing wait()?A. foo.notify();B. bar.notify();C. foo.notifyAll();D. Thread.notify();E. bar.notifyAll();F. Object.notify();Solution : E
반응형
'자격증 > OCJP_ExamC' 카테고리의 다른 글
QUESTION 21 (0) | 2018.07.24 |
---|---|
QUESTION 20 (0) | 2018.07.24 |
QUESTION 18 (0) | 2018.07.24 |
QUESTION 17 (0) | 2018.07.21 |
QUESTION 16 (0) | 2018.07.21 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상