What happens when setDaemon(true) is called after start()?

Last Updated :
Discuss
Comments

What happens when setDaemon(true) is called after start()?

The thread becomes a daemon thread

Compilation error

Runtime exception (IllegalThreadStateException)

No effect

Share your thoughts in the comments