Javatpoint Logo
Javatpoint Logo

Java ThreadGroup isDaemon() method

The isDaemon() method of ThreadGroup class tests if this thread group is a daemon thread group.

Syntax

Return

This method returns true if this thread group is a daemon thread group. Otherwise, it will return false.

Example

Test it Now

Output:

Is Parent thread a daemon threadGroup? false
Thread-1 finished executing





Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA