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 mvc is a design pattern?
what are the creational design patterns
What are the categories in which the design patterns can be divided?
When should design patterns be used?
What non-visual coding tools are available for web design?
Shall we use abstract classes or interfaces in policy / strategy design pattern?
Give me example of observer design pattern?
What is architecture and what is design?
What is the difference between factory and builder design pattern?
What is the use of repository pattern?
What are the types of participants of the prototype design pattern you will get?
What is viper architecture?
What are useful tools for developing and testing color schemes for web sites?
What is a behavioral design pattern?
5.Develop an entity relationships diagram that identifies physical entity relationships.