Vidyalelo
Java Programming · Q23

Threads

Programming · Java Programming · question 23

Q23

What is the result of calling the setDaemon(true) method on a running thread in Java?

A.
It resumes the thread
B.
It pauses the thread
C.
It sets the thread as a daemon thread
Answer
D.
It stops the thread immediately

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board