Java Design Patterns

Source: Internet
Author: User

Design Patterns are a set of reusable, most known, categorized purposes, code design experience Summary. Design patterns are used in order to reuse code, make code easier for others to understand, and ensure code reliability. There is no doubt that design patterns in others in the system are multi-win; Design patterns make code writing truly engineering; Design patterns are the cornerstone of software engineering, like the structure of a building.

Four types of design patterns:

1. Creative Mode:

These design patterns provide a way to create objects and hide the creation logic instead of instantiating objects directly using the new operator. This allows the program to have greater flexibility in determining which objects need to be created for a given use case, including: Singleton mode, prototype mode, Factory mode, abstract Factory mode, Builder mode

2. Structure Mode:

These design patterns involve classes and object composition. The concept of inheritance is used to compose interfaces and define methods to combine objects to obtain new features, including: Combination mode, bridging mode, decorator mode, appearance mode, enjoy meta mode, proxy mode, adapter mode.

3. Behavior mode:

These design patterns are particularly focused on communication between objects, including: Responsibility chain mode, template mode, Memo mode, observer mode, strategy mode, adjuster mode, state mode, visitor mode, iterator mode, interpreter mode, command mode.

4.J2EE mode:

These design patterns specifically involve the presentation layer. These patterns are Sun Java Center identified by.

Java Design Patterns

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.