Home » Java ThreadGroup isDestroyed() method with Examples

Java ThreadGroup isDestroyed() method with Examples

by Online Tutorials Library

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

Test it Now

Output:

Starting of Thread-1  Starting of Thread-2  Group is not destroyed  Thread-1 completed executing  Thread-2 completed executing  

You may also like