| Create daemon thread and some instruction in Java?
To create daemon thread we use one of the class that setDaemon. Below are the 3 most usefull things abou the daemon thread in Java.
(1)To create daemon thread in java we need to use class setDaemon. And we need to set setDaemon(true) to create a thread.
(2)And this method should be call before the start() method.
(3)If we didnot call this before start we will get illegalThreadStateException error. | | |