Can singleton class be cloned?



Can singleton class be cloned?..

Answer / Mayuresh Pal

No, a singleton class cannot be cloned in Java because it is designed to have only one instance. Cloning would create multiple instances which contradicts the singleton pattern.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the purpose of final keyword and when to use it?

1 Answers  


Can try statements be nested?

3 Answers   Wipro,


What is the base class of all exception classes?

1 Answers  


Explain runtime exceptions?

1 Answers  


How to use string tokenizer class.

1 Answers  


How to check if a list is sorted in java?

1 Answers  


What is gui programming?

1 Answers  


What is difference between hashset and hashmap?

1 Answers  


What does business logic mean?

1 Answers  


What are the classes of java?

1 Answers  


What is passing by reference in java?

1 Answers  


Explain heap sort?

1 Answers   Flextronics,


Categories