Java Thread isDaemon() methodThe 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. SyntaxReturnThis method will return true if the thread is daemon thread otherwise return false. ExampleTest it NowOutput: daemon thread work user thread work user thread work
Next TopicMultithreading Java
|