Design patterns are solutions to commonly occurring problems in software development. When you follow a particular pattern, there are some forces which are guiding you to use design patterns. There are enormous number of design patterns catering to every single area of application development like Creational, UI, Security, Concurrency etc. Here we shall discuss most commonly used design patterns.
2. Creational Patterns
3. Structural Patterns
4. Behavioral Patterns
5. Enterprise Application Patterns
6. UI Patterns
How design patterns work in Java. Various design pattern categorize and the need for having design patterns. Writing custom design patterns
Create instances of classes using factory which eases the creation of instances of complex classes in Java application.Follow sample code.
Singleton Design Pattern
Tutorial on how singleton design pattern works in Java and various ways in which singleton design pattern can be written in a Java application.
Decoration is a good mechanism by which the behavior of classes can be enhanced by adding extra feature to it. For example adding buffering to I/O classes.
Flyweight Design Pattern
Flyweight is a special design pattern due to the fact that it improves performance of constrained objects like String in case of JDK.
Enterprise Application Patterns
Read these suggested books on design patterns.