what is singleton class in java?



what is singleton class in java?..

Answer / Vishwas Pandey

In Java, a Singleton is a design pattern that restricts the instantiation of a class to a single instance. It's often used when only one object of a particular class is needed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is tcp ip in java?

1 Answers  


What is the multi-catch block in java?

1 Answers  


What is the difference between interface & abstract class?

1 Answers  


Is null keyword in java?

1 Answers  


How does a for loop work?

1 Answers  


What are the override methods in Object class?

2 Answers   Tech Mahindra, Wipro,


How can we achieve IPC in JAVA?

1 Answers   Wipro,


What is the difference between a loader and a compiler?

1 Answers   Syntel, Visa,


write the hierarchy of component class?

1 Answers  


Who developed java?

1 Answers  


Hi can u pls tell me what is the use of marker interface. Iknow what is marker interface but what ability will the object get by implementing this.

3 Answers   CGI,


Write a function for palindrome and factorial and explain?

1 Answers   Honeywell, Huawei, Zomato,


Categories