Core Java Design Pattern
Core java Design Pattern
Abstract:
“Pattern” as the name suggests, means series of events occurring in a definite order. The patterns can be found in Java and J2ee technologies also. Many times, we find that there is a particular way of tackling a problem. This way is easy and has been used many times successfully by a number of people earlier also. This method becomes a pattern. Patterns Defined: The patterns can be defined in many ways. You can find the definitions of patterns in many good books. Patterns: According to commonly known practices, there are 23 design patterns in Java. Creational PatternsAll the creational patterns define the best possible way in which an object can be instantiated. So, what’s the great stuff? Well, that’s true. The new Operator creates the instance of an object, but this is hard-coding. There are five types of Creational Patterns. Structural PatternsStructural Patterns describe how objects and classes can be combined to form larger structures. The difference between class patterns and object patterns is that class patterns describe abstraction with the help of inheritance and how it can be used to provide more useful program interface. Object patterns, on other hand, describe how objects can be associated and composed to form larger, more complex structures. There are seven structural patterns described. They are as follows:
Behavioral Patterns are as below
The chain of responsibility pattern is based on the same principle as written above. It decouples the sender of the request to the receiver. |
|
Recent Comments