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 is the difference between the Adapter Pattern and Proxy Patterns?its seems both are almost similar?
i have file(ps),dont know how many records are there. move half of the records to 2 files. how can we do
What is meant by design pattern?
Is dependency injection a design pattern?
Can any one suggest me the best institute for Software Design , Design Patterns and architecture in Hyderabad please. Thanks in Advance.
Using any system, product, or service your organization provides, identify the human system roles for the product.
What according to you will be the next best thing in UI UX Design?
Explain the singleton, facade, or handle class design pattern?
Identify three types of systems or system upgrades that may be ideal candidates for a Waterfall Development Model strategy.
What are the different types of Design Patterns and Explain them?
3 Answers Genpact, Gradatim, Gul Ahmed, TCS, Wipro,
What is the use of repository pattern?
How did you design your unit tests?What about integration tests?