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
Is list ordered in java?
Explain the difference between transient and volatile in java?
Explain the reason behind ending a program with a system.exit(0)?
What is an array length?
Explain numeric promotion?
Is oracle charging for java?
Can a static class implement an interface?
What is the differences between heap and stack memory in java? Explain
What is equals method in java?
What are the advantages of functions?
Explain about features of local inner class?
What’s meant by anonymous class?
What is immutable data?
What do you mean by JVM?
What is r * in math?