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
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 is the use of such a class?
What is onion architecture?
What is meant by design pattern?
What is architecture and what is design?
How do you choose a design pattern?
What is single tone design pattern in java?
What is the builder pattern?
Why is singleton bad?
What is difference between function oriented design and object oriented design?
What are the 23 design patterns?
Which design pattern is mvc?
Which design patterns have you used in your project ?
What is mvp design pattern?
What is aop design?