A. IllegalStateException is thrown if a thread in waiting state is moved back to runnable.
false
it moves back to runnable as a result of notify(), notifyAll() or time elapsed or finish the thread (join())
B thread in waiting state consumes CPU cycles.
false
A thread is inactive when in the blocked or waiting state. When in these states, the thread does not consume any CPU cycles.
D. A thread in waiting state must handle InterrupedException.
true
public void run()
In inheritance method must not throw new or checked exception
So any checked exception has to be handled inside
Object.join
Object.wait
Thread.sleep
all of them throw InterruptedException
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ASPushkin
3 days, 18 hours agoxplorerpj
9 months, 1 week agominhdev
11 months agoSamps
1 year, 1 month ago