Q.

Which of the following statement is false?

A. The sleep() method should be enclosed in try ... catch block.
B. The yield() method should be enclosed in try ... catch block.
C. A thread can be temporarily suspended from running by using the wait() method.
D. A suspended thread using suspend() method can be revived using the resume() method.
Answer» B. The yield() method should be enclosed in try ... catch block.
3.1k
0
Do you find this helpful?
21

View all MCQs in

Java Programming

Discussion

No comments yet