Java Thread toString() methodThe toString() method of thread class is used to return the string representation of the thread, including the thread's name, priority and thread group. SyntaxReturnThis method returns a string representation of the thread. ExampleTest it NowOutput: Thread[Thread-0,5,main]
Next TopicMultithreading Java
|