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 skills do you think are necessary for a UI UX Designer?
What are the different types of Design Patterns and Explain them?
3 Answers Genpact, Gradatim, Gul Ahmed, TCS, Wipro,
Which design patterns have you used in your project ?
Using any system, product, or service your organization provides, identify the human system roles for the product.
What are External Style Sheets?
What is aop design?
What is the publish/subscribe model?
Can we use an equated value as operands for an MVC ? Reason for the same.
Show us an example of a design that can solve a business problem.
What is onion architecture?
2. Create your own definition of a system. Based on the “system” definitions a. Identify your viewpoint of shortcomings in the definitions. b. Provide rationale as to why you believe that your definition overcomes those shortcomings. c. From an historical perspective, identify three precedented systems that were replaced by unprecedented systems.
What is the creational design pattern?