---
title: "What is singleton?"  
description: "What is singleton?"  
author: "Sumit Kesarwani"  
published: 2014-02-10  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1917/what-is-singleton  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is singleton?

It is one of the design pattern. This falls in the creational pattern of the design pattern. There will be only one instance for that entire JVM. You can achieve this by having the private constructor in the class.

## Answers

### Answer by Sumit Kesarwani

It is one of the design pattern. This falls in the creational pattern of the design pattern. There will be only one instance for that entire JVM. You can achieve this by having the private constructor in the class.


---

Original Source: https://www.mindstick.com/interview/1917/what-is-singleton

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
