java daemon threads

Olá, o daemon thread deixará de funcionar quando o encadeamento encerrado? Ou o encadeamento daemon será interrompido quando o encadeamento "principal" terminar?

Testei este exemplo no jre6 e o resultado foidaemon thread stopped working when the enclosing it thread finished. Observe que os documentos java disseram que os threads do daemon são eliminados quando nenhum outro thread do aplicativo permanece. E não é dito que os threads do daemon são eliminados quando o thread pai que não é daemon permanec

Por favor, me dê respostas. Por favor, envie-me qualquer material sobre esta questão. Desculpe pelo meu Inglês

public class Main {
    public static void main(String[] args) {
        Thread simple = new Thread(new SimpleTask());
        simple.start();
    }
}

class SimpleTask implements Runnable {
    public void run() {
        try {
            Thread daemon = new Thread(new DaemonTask());
            daemon.setDaemon(true);
            daemon.start();
            Thread.sleep(5000);
        } catch (InterruptedException e) {}
    };
}

class DaemonTask implements Runnable {
    public void run() {
        int i = 0;
        while (true) {
            try {
                System.out.println("a" + (i++));
                Thread.sleep(500);
            } catch (InterruptedException e) {}
        }
    }
}

questionAnswers(4)

yourAnswerToTheQuestion