1.

Create daemon thread and some instruction in Java?

Answer»

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.



Discussion

No Comment Found