List various design patterns available in Java?

Siva Prasad Nanda
Siva Prasad Nanda

Posted On: Apr 08, 2020

 

Design patterns/models are a well-proved answer for determining a particular problem or job. Design patterns/models are classified into two sections:

  1. JEE Design Patterns.
  2. Core Java (or JSE) Design Patterns.

In core java, there happens to be essentially three sorts of design models, which are additionally separated into their sub-sections:

  • Structural Design Pattern: Composite Pattern, Decorator Pattern, Adapter Pattern, Bridge Pattern, Proxy Pattern, Facade Pattern, Flyweight Pattern.
  • Creational Design Pattern: Singleton Pattern, Prototype Pattern, Factory Pattern, Abstract Factory Pattern, Builder Pattern.
  • Behavioural Design Pattern: Interpreter Pattern, Iterator Pattern, Chain Of Responsibility Pattern, Observer Pattern, State Pattern, Command Pattern, Mediator Pattern, Memento Pattern, Strategy Pattern, Visitor Pattern, Template Pattern

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Cognizant Java Interview Questions

    What is a Singleton in Java?

    Singleton class in Java contains only one object at one time. For the designing of the singleton class, the construction needs to be private. The static method needs to be written to return the object...

    Cognizant Java Interview Questions

    Is Java supports multiple inheritance?

    When one class extends for more than one class, then it is known as multiple inheritance. No, Java does not support multiple inheritance to prevent the ambiguity that it can cause. The diamond proble...

    Cognizant Java Interview Questions

    What is JPA and Junit?

    JPA or Java Persistence API is a mechanism through which JAVA can outlive the application processes that have created them. JPA allows you to define which objects are persisted and how they should be ...