Which of the following are true?
Choose all that apply.
main()
. main()
. B, C, D.
A is wrong because main()
is executed by a non-daemon thread.
B is correct because daemon threads are for the JVM's infrastructure.
Non-daemon threads are for programmers.
The JVM initially creates a non-daemon thread to run main()
.
C and D are both correct because a thread's daemon state is the same as that of its creating thread.