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.

Note/Explanation

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

Leave a Reply

© 2017 Micro Solutions Bangladesh and/or MCQ Academy.