What is a daemon threads?

What is a daemon threads?

- It is a service provider thread which provides the services to the user thread.

- Daemon threads run at a low priority.

- The GC(Garbage Collector) is an example of such thread.

- It is mostly created by JVM for performing background task like garbage collection and finalize() method.

- It will throw an IllegalThreadStateException if corresponding thread is already started and running.
Arraylist vs. Vector
Arraylist vs. Vector - Arraylist's methods are not synchronized which means they are not thread safe. Vector's methods are....
What is a Throwable class?
What is a Throwable class? - It is the superclass of all errors and exceptions in Java....
Significance of Finalize method
Significance of Finalize method - The Finalize method of an object is called when GC is about to clean up the object. We can keep clean up....
Post your comment