Explain the singleton, facade, or handle class design
pattern?
Answer Posted / ash
Singleton - single instance of the class will be used. Many
uses.
facade - simplifying interface(s) into simple interface.
Used in application or presentation layer as api or for
wrapping external third-party api/resource
Handle - one method interface with one "action" argument.
Other arguments can be passed as list for "action". Used
when we dont know upfront which methods we would support and
dont want clients to recompile. Somewhat similar to command
pattern
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
When singleton pattern is used?
What are the most commonly used design patterns?
What is the difference between factory and strategy design pattern?
What is singleton and factory pattern?
What are the disadvantages of singleton pattern?
What is proxy in design pattern?
What is clean architecture?
What is the use of such a class?
What is the builder pattern?
Explain three types of components comprise an application design?
How did you design your unit tests?What about integration tests?
What is single tone design pattern in java?
What is a lazy initialization in singleton?
Is bean a singleton?
What is the design pattern?