Java ThreadGroup isDaemon() methodThe isDaemon() method of ThreadGroup class tests if this thread group is a daemon thread group. SyntaxReturnThis method returns true if this thread group is a daemon thread group. Otherwise, it will return false. ExampleTest it NowOutput: Is Parent thread a daemon threadGroup? false Thread-1 finished executing
Next TopicThreadGroup in Java
|