Which one of the following statements about when setDaemon() may be called is true?
Answer: A
The javadoc states the method must be invoked before the thread is started, and that it throws IllegalThreadStateException if the thread is alive. Daemon status is therefore fixed for the whole life of a running thread and cannot be switched on later.
Please log in or register to report this question.