You are not logged in.
#1 2016-01-20 07:14:55
Which is the way in which a thread can enter the waiting state?
Java Quizzes Java Language Input Output
Question:
Which is the way in which a thread can enter the waiting state?
Option A):
Invoke its suspend() method.
Option B):
invoke object's wait method.
Option C):
Invoke its sleep() method.
Option D):
All of these
Correct Answer is Option D):
All of these
Explanation:
A thread can enter the waiting state by invoking its sleep() method, by blocking on IO, by unsuccessfully attempting to acquire an object's lock, or by invoking an object's wait() method. It can also enter the waiting state by invoking its (deprecated) suspend() method.
Online Web Tutorials And Interview Questions With Answers Forum:
https://globalguideline.com/forum/
Offline
2016-01-20 07:14:55
- Advertisement
- Ads By Google
Re: Which is the way in which a thread can enter the waiting state?
\n