The main points of Java language learning

Source: Internet
Author: User
Tags arrays data structures inheritance interface access
Java learning is more complex, mainly manifested in a series of related platforms, specifications and protocols. As experienced Java programmers know, it is difficult to develop applications with only the Java language in its own hands. This article does not discuss these complex concepts, but from a beginner's point of view, the Java language itself to learn to put forward their own ideas and suggestions. The discussion in this article is based on the following assumptions:
? The purpose of the study is to develop the application in the future, rather than to study the language theory.
? Future application development is developed on a mature platform, rather than on its own from the underlying development platform
Mastering static methods and properties
Static methods and properties are used to describe the characteristics of a class of object groups, rather than the characteristics of individual objects. In Java, static methods and properties are applied in large numbers, which is a common technique. But this technique is not used frequently in many languages. Understanding static methods and properties is useful for understanding the relationship between classes and objects, and in a large number of Java specifications, static methods and properties are frequently used. So learners should understand static methods and properties. Java is consistent in the invocation of methods and properties, and the difference is expressed only in the declaration, which is different from C + +.
Attach importance to interface
Class inheritance is used extensively in object-oriented early applications. With the development of software engineering theory, people begin to realize the many shortcomings of inheritance, and begin to use aggregation instead of inheritance. The important principle of software engineering to solve extensibility is abstract description, the tool used directly is interface. Interfaces have become the core of Java programming methods in recent years. On the other hand, in terms of application, most of the development is based on the normative basis, do not need to build their own complex inheritance relationships and large classes. So read the specification and use good specifications has become the first task of application developers, Java Xiang Di dou gourmands  Fang 鍪 nephew Commandant faded Wall Chung Songhu?br> learn the collection framework
The main way Java describes complex data structures is the collection framework. Java has no pointers, but rather a powerful set frame that describes complex data structures such as arrays, object arrays, and so on. The descriptive method of these data structures is very important to the application writing, especially to the server side and the 3-tier structure programming. Programmers can no longer use structures such as database result sets to describe data at this time. Because many languages do not have such a powerful set frame system, many beginners are overwhelmed, more do not know what to do with, so should arouse enough attention.
Exception capture
Java's emphasis on exception capture is unprecedented, forcing programmers to describe exception captures in a way that is quite different from the logical approach, which is of great significance for the completeness and rigor of the program description. C + + also has a similar mechanism, but we see many C + + programmers are not accustomed to using these mechanisms. Java Beginners should fully learn this exception capture mechanism, develop good programming habits.
Multithreading needs to understand the mechanism
Many Java programmers are eager to write multithreaded programming, which is considered a challenge to logical capabilities. In fact, there is no need to write multithreaded programs in a large number of applications, or most programmers who write applications do not write multithreaded programs. This is because multithreaded mechanisms are built into the base platform. The programmer should understand the multithreading principle and multithreading security, which is very important to grasp the program accurately in the future. For example, writing to a different location in the JSP is completely different for the security impact of multiple user environments, and as the famous super servlet is every access as a process, but each page is a thread, and the servlet is the opposite, the impact on the performance and security of the program is a big difference.
Understanding Network Programming
Java is known as the strongest network programming language, but most application developers are never able to develop any underlying network programs themselves. Need to do just understand the principle is enough. The implementation of the network mechanism is based on the platform, unless the development of their own platform, otherwise it is not necessary to know how to implement the socket, how to monitor access. So spending too much time on this is a departure from the assumption that future application development is unfolding on a mature platform, rather than developing a platform from the bottom.


Related Article

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.