77
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
Output:
Is Parent thread a daemon threadGroup? false Thread-1 finished executing
Next TopicThreadGroup in Java