title: java daemon thread and non-daemon thread
body: <p>I am doing java past exam paper, and I have encounter the following question that is confusing me.</p>
  
  <blockquote>
    <p>Which of the following are true? (Choose all that apply.)</p>
  </blockquote>
  
  <p>A. When an application begins running, there is one daemon thread, whose job is to execute main().</p>
  
  <p>B. When an application begins running, there is one non-daemon thread, whose job is to execute main().</p>
  
  <p>C. A thread created by a daemon thread is initially also a daemon thread.</p>
  
  <p>D. A thread created by a non-daemon thread is initially also a non-daemon thread.</p>
  
  <p>The key answer is B,C,D, could anyone tell me why B,C is correct? Many thanks.</p>