@@ -0,0 +1,485 @@
+package thread;%0A%0Apublic class DaemonTest %7B%0A    %0A    public static void main(String%5B%5D args) %7B%0A        Thread mainThread = Thread.currentThread();%0A        System.out.println(%22main thread is daemon: %22 + mainThread.isDaemon());%0A        %0A        Thread newThread = new Thread();%0A        System.out.println(%22new thread is daemon: %22 + newThread.isDaemon());%0A        %0A        newThread.setDaemon(true);%0A        System.out.println(%22new thread is daemon: %22 + newThread.isDaemon());%0A    %7D%0A    %0A%7D%0A

add DaemonTest.java