Java Thread stop() method
The stop() method of thread class terminates the thread execution. Once a thread is stopped, it cannot be restarted by start() method.
obj : The Throwable object to be thrown.
This method does not return any value.
SecurityException: This exception throws if the current thread cannot modify the thread.
ExampleTest it Now