Cause of thread to stop executing - Java
Q. What can cause a thread to stop executing? (Java)- Published on 26 Jun 15a. 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.