Java Thread resume() methodThe resume() method of thread class is only used with suspend() method. This method is used to resume a thread which was suspended using suspend() method. This method allows the suspended thread to start again. SyntaxReturn valueThis method does not return any value. ExceptionSecurityException: If the current thread cannot modify the thread. ExampleTest it NowOutput: Thread-0 1 Thread-2 1 Thread-1 1 Thread-0 2 Thread-2 2 Thread-1 2 Thread-0 3 Thread-2 3 Thread-1 3 Thread-0 4 Thread-2 4 Thread-1 4 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