In this second Java Tutorial, we go through the popular Factory pattern. We develop a Factory and its matching Products to demonstrate how one can go about creating the correct instance of an object. We also see how we can implement a singleton version of the Factory.