---
title: "What is daemon thread and which method is used to create the daemon thread?"  
description: "What is daemon thread and which method is used to create the daemon thread?"  
author: "James Smith"  
published: 2011-07-15  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/1087/what-is-daemon-thread-and-which-method-is-used-to-create-the-daemon-thread  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is daemon thread and which method is used to create the daemon thread?

Daemon thread is a low priority thread which runs intermittently in the back ground doing the garbage collection operation for the java runtime system. setDaemon method is used to create a daemon thread.

## Answers

### Answer by James Smith

Daemon thread is a low priority thread which runs intermittently in the back ground doing the garbage collection operation for the java runtime system. setDaemon method is used to create a daemon thread.


---

Original Source: https://www.mindstick.com/interview/1087/what-is-daemon-thread-and-which-method-is-used-to-create-the-daemon-thread

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
