Can we create more than one object singleton class?



Can we create more than one object singleton class?..

Answer / Shyam Pratap Yadav

"No, by definition, a Singleton class is designed to have only one instance. Any attempt to create multiple instances will result in those additional instances referring back to the original (eagerly loaded or lazily created) unique instance."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How many types of syncronization?

2 Answers  


Why do we use variables?

1 Answers  


how to print a numbers from 1 to 100 with out using control structures?

4 Answers   IBM,


How are destructors defined in java?

1 Answers  


Can we inherit the constructor in a Class?please give one example.

9 Answers   iGate,


What is the applet security manager, and what does it provide?

1 Answers  


Can a class extend 2 classes in java?

1 Answers  


What is module in oop?

1 Answers  


What is Mutex (Mutual Exclusion Object) ?

1 Answers   Ciena,


What is boolean false?

1 Answers  


Can we override constructor in java?

1 Answers  


Explain the difference between comparator and comparable in java?

1 Answers  


Categories