Tag: Design Patterns

Core Java

Java DAO Pattern

Introduction: The DAO or the Data Access Object pattern is a very popular structural design pattern that separates the persistence logic in a separate layer. The idea is to abstract or hide the database logic from the business layer. It helps in hiding unnecessary CRUD operation and storage details from our service layer so that […]

Be the First to comment. Read More
Core Java

Factory Design Pattern In Java

Introduction: A Factory Design Pattern or Factory Method Pattern comes into picture when having a parent-child class relationship or having an interface based implementation. As the name suggest, the idea is to create a factory class which will be responsible for┬áconditionally instantiating one among the several defined object types. It promotes loose-coupling by delegating the […]

Be the First to comment. Read More
Core Java

Singleton Design Pattern In Java

Introduction: Singleton Design Pattern is one of the basic and most useful Design Patterns in Java. It comes under the category of the creational pattern as defined in Gang of Four Design Patterns. The central idea behind this design pattern is to ensure that only a single instance of a class is created in the […]

Be the First to comment. Read More