Java Thread stop() methodThe stop() method of thread class terminates the thread execution. Once a thread is stopped, it cannot be restarted by start() method. SyntaxParameterobj : The Throwable object to be thrown. ReturnThis method does not return any value. ExceptionSecurityException: This exception throws if the current thread cannot modify the thread. ExampleTest it NowOutput: Next TopicJava Thread |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India