What is meant by singleton class?



What is meant by singleton class?..

Answer / Santosh Anand

A singleton class is a design pattern in Java that restricts the instantiation of a class and ensures only a single instance of the class exists. It's used when exactly one object is needed to coordinate actions across the system.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What does i ++ mean in Java?

1 Answers  


What are the files generated after using IDL to java compiler?

1 Answers  


What is the abstract class?

1 Answers  


Can you write a java class that could be used both as an applet as well as an application?

1 Answers  


When do we use synchronized blocks and advantages of using synchronized blocks?

1 Answers  


What is I/O Filter?

2 Answers   TCS, WAX,


What is a singleton class in Java?

1 Answers  


What is java developer skills?

1 Answers  


How many types of syncronization?

2 Answers  


How can two threads be made to communicate with each other?

3 Answers   HCL,


Explain when classnotfoundexception will be raised ?

1 Answers  


Why is a string immutable?

1 Answers  


Categories