Posts Tagged design patterns
Iterator Design Pattern
Posted by Bharat Sharma in behavioural design patterns, Core Java on March 8, 2020
Iterator Pattern is a Behavioural Design Pattern. The intent of Interator pattern is to provide a way to sequentially taverse over a data structure without exposing underlying data structure. Java’s Iterator is a good implementation of this pattern and allows us to traverse over underlying collection in a sequential way. A collection creates an Iterator […]
Builder Design Pattern
Posted by Bharat Sharma in Creational Design Patterns, Design Patterns on February 16, 2020
Builder Design pattern is a creational pattern. It is used to build a complex object step-by-step and final step would return complete constructed object. Builder pattern gives us more control over construction of object and makes client code more readable. It helps us eleminate problems like Telescoping Constructors and setter methods. You may also create […]