I am doing java past exam paper, and I have encounter the following question that is confusing me.
Which of the following are true? (Choose all that apply.)
A. When an application begins running, there is one daemon thread, whose job is to execute main().
B. When an application begins running, there is one non-daemon thread, whose job is to execute main().
C. A thread created by a daemon thread is initially also a daemon thread.
D. A thread created by a non-daemon thread is initially also a non-daemon thread.
The key answer is B,C,D, could anyone tell me why B,C is correct? Many thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…