Home » Java ThreadGroup isDaemon() method with Examples

Java ThreadGroup isDaemon() method with Examples

by Online Tutorials Library

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  

You may also like