Java / Design Patterns
Explain Factory pattern in Java.
Factory pattern is one of the Creational Design Patterns.
Factory pattern is used to construct objects such that they can be decoupled from the implementing system. It states that 'define an interface for creating an object, but let the subclasses decide which class to instantiate. The Factory method lets a class defer instantiation to subclasses'.
More Related questions...