How can we design/implement singleton object?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What are the languages used in the design pattern?
Explain three types of components comprise an application design?
What is the creational design pattern?
what are design patterns..?what design patterns used in .net.
How can you know that your design is successful?
How can you conduct UX evaluation?
What are the most commonly used design patterns?
Where do you find inspiration and what are your long-term goals?
What is clean architecture?
What is the use of design patterns?
What are the advantages of asynchronous architectures?
What are the design patterns you know explain?