73
Java Thread isDaemon() method
The isDaemon() method of thread class checks if the thread is a daemon thread. If the thread is daemon thread, this method will return true else it returns false.
Syntax
Return
This method will return true if the thread is daemon thread otherwise return false.
Example
Output:
daemon thread work user thread work user thread work
Next TopicMultithreading Java