What is a daemon thread in Java?

devquora
devquora

Posted On: Feb 22, 2018

 

Daemon thread is a low need string (in setting of JVM) that runs in foundation to perform assignments, for example, trash assortment (GC) and so forth., they don't keep the JVM from leaving (regardless of whether the daemon string itself is running) when all the client strings (non-daemon strings) finish their execution. JVM ends itself when all client strings (non-daemon strings) finish their execution, JVM couldn't care less whether Daemon string is running or not, if JVM discovers running daemon (endless supply of client strings), it ends the string and after that shutdown itself.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Capgemini Java Interview Questions

    What is database normalization? Explain types of it.

    In SQL, normalization of data is a process through with data is organized in tables used for the reduction of redundancy and dependency of data. It divides large tables into smaller ones using some se...

    Capgemini Java Interview Questions

    What is difference between Class and object In JAVA?

    Difference between Class and object In JAVA:Class - A class is like a blueprint. It is the class with the help of which objects are created. The class holds together data and methods in one single...