Sail E0 Webinar
Question

Which cannot directly cause a thread to stop executing?


Options:
A .  Calling the SetPriority() method on a Thread object.
B .  Calling the wait() method on an object.
C .  Calling notify() method on an object.
D .  Calling read() method on an InputStream object.
Answer: Option C

Option C is correct. notify() - wakes up a single thread that is waiting on this object's monitor.


Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers