What does singleton mean in java?



What does singleton mean in java?..

Answer / Peer Golden Hansda

In Java, Singleton is a design pattern that restricts the instantiation of a class to a single instance. This ensures that only one object of this class can be created and provides a global point of access to it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Name the methods in mouse listeners ?

4 Answers  


What are the ways in which a thread can enter the waiting state?

1 Answers  


Can we extend immutable class?

1 Answers  


Explain about transient variables in java?

1 Answers  


What is constructor and virtual function?

5 Answers  


What happens when a thrown exception is not handled?

1 Answers   Wipro,


Which method is used to find that the object is exited or not?

2 Answers  


What is the major drawback of internal iteration over external iteration?

1 Answers  


What are advantages and disadvantages of OOPs?

1 Answers   Amdocs,


Is it possible to compare various strings with the help of == operator? What are the risks involved?

1 Answers  


What is the use of isempty in java?

1 Answers  


What is the size of int?

1 Answers  


Categories