Answer Posted / jayashri
by declaring the constructor as private and we have to create public static method which returns the address of single object.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the SDLC phases you have invloved ?
What is the creational design pattern?
What is the difference between proxy and adapter?
What is the difference between factory and abstract factory design pattern?
What are the design patterns you know explain?
What is singleton design pattern in java?
Can you explain singleton pattern?
What is a lazy initialization in singleton?
What is aop design?
What are the most commonly used design patterns?
How did you design your unit tests?What about integration tests?
What are the types of the proxy design you will get in the design pattern?
What is the difference between architecture and design?
Can we inherit singleton class?
Is dependency injection a design pattern?