63
Java ThreadGroup getName() method
The getName() method of ThreadGroup class returns the name of this thread group.
Syntax
Return
This method returns the name of thread group.
Example
Output:
First threadGroup's name: Parent thread Thread-1 is running Second threadGroup's name: Child thread Thread-2 is running
Next TopicThreadGroup in Java