A

Admin • 828.03K Points
Coach

Q. Which method is used to change a thread into a daemon thread?

  • (A) makeDaemon(true)
  • (B) setDaemon(true)
  • (C) runAsDaemon()
  • (D) markDaemon()

Explanation by: Admin
`setDaemon(true)` is used before calling start() to mark a thread as a daemon thread.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.