How to prevent to create multiple objects of a java class?
Answer Posted / sadiq
Using Singleton Design pattern we can prevent class creating
multiple objects.
Is This Answer Correct ? | 30 Yes | 3 No |
Post New Answer View All Answers
What are abstract classes and anonymous classes?
What is return null in java?
What package is math in java?
Why does java does not support multiple inheritance? Explain
What is run time allocation?
What is the full meaning of java?
Explain the difference between the public, private, final, protected, and default modifiers?
Define jit compiler?
What is linked hashmap and its features?
What is array list in java?
What is volatile data type?
What happens to a static var that is defined within a method of a class?
Can a static method be overridden in java?
What is the basic concept of java?
What is the size of a string in java?