Answer Posted / ravi
Make the constructor private
provide a static synchronized method to get the Instance.
this should make the object singleton for that jvm instance
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Is singleton a design pattern?
What is use case in clean architecture?
Write the code for a singleton class?
What is the executor design pattern?
What is proxy in design pattern?
Hi, I have 9backlogs in btech and i am 2008 passed out,am working with an MNC from past 3 years.now, am willing to do MS, will it be any problem for me?
What are the most important software design patterns?
What is the difference between adapter and facade?
Are singletons bad?
Can you explain singleton pattern?
5.Develop an entity relationships diagram that identifies physical entity relationships.
What is the use of design patterns?
How do you choose a design pattern?
Describe the builder design pattern
Give me example of chain of responsibility design pattern?