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
Can you explain singleton pattern?
Why have we declared the instance reference volatile?
What are the benefits of the proxy in the design pattern?
What non-visual coding tools are available for web design?
When singleton pattern is used?
Why should we not use singleton pattern?
What is the difference between adapter and facade?
What is singleton design pattern in java?
What is the difference between proxy and adapter?
Where should we use singleton design pattern?
Why do we need singleton pattern?
What is the factory pattern in the design pattern?
Is singleton a design pattern?
Contact a small, medium, and a large contract program within your organization. Interview the Technical Director or Project Engineer to identify the following information: a. Request the individual to graphically depict their development strategy? b. What factors drove them to choose the implementation strategy? c. What were some of the lessons learned from developing and implementing the strategy that would influence their approach next time? d. How was the V & V strategy implemented?
what is the lazy design pattern?