All About Class ThreadDeath Error in Java



ThreadDeath error instance is thrown from an application when the stop() method with zero arguments is called for a thread. The victim thread throws this error to indicate that it has been killed without providing any reason.


public class java.lang.ThreadDeath extends java.lang.Error{
//constructor
public ThreadDeath();
//constructs an empty ThreadDeath object that is an object with no message specified.
}
 
All About Class ThreadDeath Error in Java All About Class ThreadDeath Error in Java Reviewed by Animesh Chatterjee on September 20, 2018 Rating: 5

No comments:

Powered by Blogger.