Cause of thread to stop executing - Java

Q.  What can cause a thread to stop executing? (Java)
- Published on 26 Jun 15

a. The program exits via a call to System.exit(0);
b. Another thread is given a higher priority
c. A call to the thread's stop method
d. All of the above

ANSWER: All of the above
There are various ways by which a thread can stop executing like the stop() or exit() command. Maybe a higher priority thread comes in or even some system problems may occur.

Post your comment / Share knowledge

Enter the code shown above:
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)