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
when should you use stringbuilder class in a program?
Explain java coding standards for constants?
What are the uses of synchronized keyword?
Which keyword specify that a variable is effectively final ?
Why java strings are immutable in nature?
What is application tier?
What is difference between overloading and overriding in java?
What is difference between == equals () and compareto () method?
Why do I need to declare the type of a variable in java?
What are the drawbacks of singleton class?
List some important characteristics on jre
Is intellij better than eclipse?
What is public static?
What are the rules for naming an array?
Why java uses the concept of the string literal?