- What is the difference between an Adapter and a Facade pattern. Why do you need both of them ?
- Adapter is for altering an interface. Facade is to provide a simplified interface for a complex subsystem
- Adapter hides the altered interface from the client. Facade still exposes the subsystem interface for advanced clients.
- How does decorator differ from Subclassing + overriding ?
- What is double checking strategy in Singleton pattern ?
- Declare the single instance to be volatile.
- Synchronize block for creating instance.
- Check for instance null just before entering and just after entering Synchronized block before creating var.
- How do we circumvent the problem of a class being Singleton across classLoaders also ?
Showing posts with label Design Patterns. Show all posts
Showing posts with label Design Patterns. Show all posts
Monday, May 17, 2010
Design Patterns
Subscribe to:
Posts (Atom)