Is thread daemon

Report a typo

Implement the method printIfDaemon of the ThreadUtil class which accepts a Thread object and prints daemon if the thread is daemon or not daemon otherwise.

Write a program in Java 17
class ThreadUtil {
public static void printIfDaemon(Thread thread) {
// implement logic
}
}
___

Create a free account to access the full topic