What is a singleton class in Java? And How to implement a singleton class?
Answer Posted / nashiinformaticssolutions
A class that can possess only one object at a time is called a singleton class. To implement a singleton class given steps are to be followed:
1. Make sure that the class has only one object
2. Give global access to that object
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How big is a 32 bit integer?
What do you mean by singleton class in java?
What are unchecked exceptions in java?
what is method reference in java 8?
What is a superclass?
Is java 9 released?
How does finally block differ from finalize() method?
Can we use this () and super () in a method?
Why array is used in java?
Is string a class?
What is exception hierarchy in java?
What is java virtual machine? Explain
Does variable declaration allocate memory?
Is a method a procedure?
Is a char always 1 byte?