Java ThreadGroup getName() methodThe getName() method of ThreadGroup class returns the name of this thread group. SyntaxReturnThis method returns the name of thread group. ExampleTest it NowOutput: First threadGroup's name: Parent thread Thread-1 is running Second threadGroup's name: Child thread Thread-2 is running
Next TopicThreadGroup in Java
|