What is a singleton class in Java? And How to implement a singleton class?
Answer Posted / nashiinformaticssolutions
A singleton class is one that can only have one object at a time. The following procedures must be followed in order to implement a singleton class:
Verify that there is only one object in the class.
Allow the item to be accessed globally.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is empty string literal in java?
What is the importance of static variable?
What does @override mean?
How many classes can any class inherit java?
What is the difference between delete and delete[]
How do you replace all in word?
Explain tree set and its features?
What is the size of int in 64-bit jvm?
What is private static in java?
Why set do not allow duplicates in java?
What is the purpose of stub and skeleton?
What is JFC?
What does sprintf mean?
Is oracle java 11 free?
What language is java written?