Java ThreadGroup isDestroyed() methodThe isDestroyed() method of ThreadGroup class tests if the thread group has been destroyed. Syntax:Return:This method returns true if the object is destroyed. ExampleTest it NowOutput: Starting of Thread-1 Starting of Thread-2 Group is not destroyed Thread-1 completed executing Thread-2 completed executing
Next TopicThreadGroup in Java
|