Design Patterns in Java:-
In java point of views, Design patterns is the arrangement of Java classes. A design pattern is a solution to a general software problem within a particular context.
- Context : A recurring set of situations where the pattern applies.
- Problem : A system of forces (goals and constraints) that occur repeatedly in this context.
- Solution : A description of communicating objects and classes (collaboration) that can be applied to resolve those forces.
In Java design pattern is three types.
- Creational Patterns
- Structural Patterns
- Behavioural Patterns
- Concurrency pattern