Java framework (1) -- what is a framework?

Source: Internet
Author: User


With the popularity of Java object-oriented language and the emergence of multi-layer architecture applications, application reusability has been greatly improved, and the framework is also emerging in applications, and has been widely used. So what is the framework? What are the Java frameworks? I will give a detailed explanation in this blog and the subsequent blogs. This blog mainly explains what a framework is.


So what is the Java framework? The Java framework is a collection of classes and interfaces. through coordination between these classes and interfaces, a series of program implementations are completed. The framework is also called a semi-finished product in development. It cannot provide everything for the entire web application, but with the framework, we can focus on developing business logic without worrying about its technical implementation and some auxiliary business logic. To put it bluntly, the Java framework encapsulates classes that are convenient for programmers to operate, making project development easier and easier to maintain.


Generally, the framework is developed by expert teams in a certain field to solve a certain type of problem. The use of the framework in the program can make the program easier to expand, easier to maintain, and more stable.


What is the difference between the framework and the design model?

The design pattern is a method to solve a certain type of problem. The solution is summarized as a theory. For example, to solve the problem that some objects can only use one specific object, we use the Singleton pattern; to solve the problem that algorithms are prone to changes, we use the policy mode. Each mode describes a problem that is constantly emerging in our environment, and then describes the core of the solution to the problem. In this way, you can use existing solutions countless times without repeating the same work.

Framework. In fact, it is a semi-finished product of a certain application and a group of parts. However, this item is particularly reusable and allows the majority of program developers to complete their own systems. Simply put, you can use a stage set up by others to perform performances. In addition, the framework is generally mature and constantly upgraded software.


So why should we use the framework?

As software systems have become very complex today, especially the knowledge, content, and problems of server-side software and design. Using someone else's mature framework in some ways is equivalent to letting someone else do some basic work for you. You only need to concentrate on completing the business logic design of the system. In addition, the framework is generally mature and robust. It can handle many details of the system, such as transaction processing, security, and data flow control. There are also frameworks that are generally used by many people, so the structure is very good, so the scalability is also good, and it is constantly upgraded, you can directly enjoy the benefits of other people upgrading code.


SSH is the most familiar framework. I will introduce the use of the three frameworks in detail in the following blog. Stay tuned!




 

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.