Learning Java language development.

Source: Internet
Author: User

Learning Java language development.

Java learning is complex, mainly manifested in a series of related platforms, specifications and protocols. As experienced Java programmers know, it is difficult to develop applications only by mastering the Java language. The following Java language learning points should be useful for beginners and are for reference only!

1. The purpose of learning is to develop applications in the future, rather than conducting theoretical research on language.

2. In the future, application development will be carried out on a mature platform, rather than from the underlying development platform.

1. Master static methods and attributes

Static methods and attributes are used to describe the features of a certain type of object group, rather than the features of a single object. Static methods and attributes are widely used in java. This is a common technique. However, this technique is not frequently used in many languages. Understanding static methods and attributes is very helpful for understanding the relationship between classes and objects. in a large number of java specifications, static methods and attributes are frequently used. Therefore, learners should understand static methods and attributes. Java is consistent in the call of methods and properties. The difference is only manifested in the declaration, which is different from c ++.

2. Pay attention to interfaces

Class inheritance is widely used in early object-oriented applications. With the continuous development of software engineering theory, people began to realize the many shortcomings of inheritance and began to try to replace inheritance with aggregation. An important principle for Software Engineering to solve scalability is abstract description. interfaces are directly used as tools. Interfaces have gradually become the core of java programming methods in recent years. On the other hand, as far as applications are concerned, most development is based on specifications, and you do not need to build complex inheritance relationships and huge classes on your own. Therefore, reading and using the specifications has become the primary task for application developers. interfaces are the main methods to describe Java specifications. For example, in the development of Android cloud encryption, that is, the API automatic encryption interface, do not know can be here for details: http://www.ijiami.cn/appprotect_encrypt_way

3. Learning the collection framework

Java describes complex data structures in a collection framework. Java does not have pointers, but uses a powerful Collection framework to describe complex data structures such as arrays and object arrays. The description of these data structures is crucial for application programming, especially for server-side and layer-3 structured programming. Programmers cannot describe data with structures such as database result sets at this time.

Because many languages do not have such a powerful Collection framework system, many beginners are overwhelmed and do not know what to use. Therefore, they should be paid enough attention.

Iv. Exception capture

Java emphasizes exception capture in an unprecedented manner. It forces programmers to describe exception capture in a way that is significantly different from a logical method, which has great significance for the completeness and rigor of program description. C ++ has similar mechanisms, but we can see that many c ++ programmers are not used to these mechanisms.

Java Beginners should fully learn this exception capture mechanism, develop good programming habits, and then use the knowledge they have learned to use, for example, to participate in a Programming Competition: http://www.ijiami.cn/newsInfo? Id = 519 & v = 2

5. multi-thread mechanism to be understood

Many java programmers are keen on multi-threaded programming and think it is a challenge to the logic capability. In fact, in a large number of applications, there is no need to write multi-threaded programs, or most programmers who write applications will not write multi-threaded programs. This is because the multithreading mechanism is built into the basic platform.

Programmers should understand the principles of multithreading and the security of multithreading, which is crucial for the future to accurately grasp the program.

For example, writing in JSP to different locations has completely different security impact on multiple user environments. For example, the famous Super Servlet uses every access as a process, but every page is a thread, in contrast to Servlet, the impact on program performance and security is quite different.

6. Understand Network Programming

Java is known as the strongest network programming language, but most application developers never develop any underlying network programs themselves. You only need to understand the principle. The implementation of the network mechanism depends on the platform. Unless you develop the platform yourself, you do not need to know how to implement the socket and how to listen for access. Therefore, the assumption that "application development in the future will be carried out on a mature platform rather than on the underlying development platform" is deviated from the previous one.

7. Pay attention to security protection technologies

Many programmers do not pay attention to the development of programs. Bugs are everywhere. Although bug modification is a mission of programmers, if you pay attention from the very beginning, this process will not be so hard. With limited developer time, you can use a third-party platform to achieve security protection and achieve a win-win situation. For the time being, professional data encryption provides services including security assessment and processing, dex triple protection, So library encryption, and custom protection, it has provided security protection services for many well-known apps in China. Its customers are engaged in gaming, finance, banking, payment, and other industries. It also cooperates with telecom and mobile operators to provide overall encryption protection services for the platform. You can also customize an exclusive security encryption solution based on your specific needs! Http://www.ijiami.cn/appprotect_mobile_games

 

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.