Design Pattern : Builder Design Pattern Builder design pattern in Java is a creational pattern i.e. used to create objects, similar to factory method design pattern which is also creational design pattern. What problem Builder pattern solves in Java Builder pattern is a creational design pattern it means its solves problem related to object creation. Constructors in Java are used to create object and can take parameters required to create object. Problem starts when an Object can be created with lot of parameters , some of them may be mandatory and others may be optional . Guidelines for Builder design pattern in Java 1) Make a static nested class called Builder inside the class whose object will be build by Builder. In this example its Alert D ialog . 2) Builder class will have exactly same set of fields as original class. 3) Builder class will expose method for adding propert ies for alert dialog e.g. title, message in this example. each ...