105
Java ThreadGroup isDestroyed() method
The isDestroyed() method of ThreadGroup class tests if the thread group has been destroyed.
Syntax:
Return:
This method returns true if the object is destroyed.
Example
Output:
Starting of Thread-1 Starting of Thread-2 Group is not destroyed Thread-1 completed executing Thread-2 completed executing
Next TopicThreadGroup in Java