How do I create daemon threads?

daemon, java

Solution

java.lang.Thread.setDaemon(boolean)

Note that if not set explicitly, this property is "inherited" from the Thread that creates a new Thread.

Problem

Can a java programmer can create daemon threads manually? How is it?

Original source