Javatpoint Logo
Javatpoint Logo

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






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA