---
title: "What is Singleton class in Java ?"  
description: "What is Singleton class in Java ?"  
author: "Anonymous User"  
published: 2015-07-04  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/2682/what-is-singleton-class-in-java  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is Singleton class in Java ?

Singleton class is used to control no of object created for a class, limiting the number to one. But if the situation changes in future, it allows to create more objects without affecting existing clients.

## Answers

### Answer by Anonymous User

Singleton class is used to control no of object created for a class, limiting the number to one. But if the situation changes in future, it allows to create more objects without affecting existing clients.


---

Original Source: https://www.mindstick.com/interview/2682/what-is-singleton-class-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
