News

A tutorial highlighting the various design patterns in Java. Learn about the benefits and different types of design patterns.
The factory design pattern is a popular pattern that can be used to create objects. It is a creational pattern (GOF) and provides a standard and elegant way to create instances of classes.
Inspired by Ruby ’s polymorphic ability to create different objects based on context, Venkat proposes an implementation of the factory method pattern by using Java’s default keyword.
In essence, the Abstract Factory design pattern is used to create a factory of factories. In the Abstract Factory design pattern, the consumer invokes the Factory methods to create the objects.