Which cannot directly cause a thread to stop executing?

  • Calling the SetPriority() method on a Thread object.
  • Calling the wait() method on an object.
  • Calling notify() method on an object.
  • Calling read() method on an InputStream object.


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

Leave a Reply

© 2018 Micro Solutions Bangladesh and/or MCQ Academy.