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 |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India