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 |
4. Identify and bound the SOI’s Operating Environment.
Why is singleton used?
Quartus II software version 6.0 is available for which operating systems (OS)?
Can any one suggest me the best institute for Software Design , Design Patterns and architecture in Hyderabad please. Thanks in Advance.
Why singleton beans are not thread safe?
Why is singleton bad?
Shall we use abstract classes or interfaces in policy / strategy design pattern?
Why is it important to use systems analysis and design methodologies when building a system? Why not just build the system in whatever way appears to be “quick and easy”? What value is provided by using an “engineering” approach?
1 Answers DBU, KSV College, Sampson, University of Ibadan,
What are the examples of the behavioral design patterns?
What is the prototype design pattern?
What is the S/W model used in the project. What are the optimization techniques used. Give examples ?
2 Answers Infosys, Symphony, Wipro,
what is a Design Pattern?