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 is a boolean flag in java?
How to stop a thread in java? Explain about sleep () method in a thread?
Does google use java?
What string is utf8?
What are class members by default?
How do you sort arrays in java?
What are the differences between stringbuffer and stringbuilder?
What is default exception handling in java?
Can a class have multiple constructors?
Why 1 is not a prime number?
What is the abstract class?
how to create multithreaded program? : Java thread
Differentiate between stringbuffer and stringbuilder in java.
How do singleton patterns work?
What is unmodifiable collection in java?