Joke Collection Website - Blessing messages - The best way to learn Java

The best way to learn Java

First, understand the part of JavaSE, so that you can watch less or not watch Swing and swt, because it is used less now. The key point is to understand the object-oriented, collection framework, JDBC, exception, IO, thread and network programming in Java. After JavaSE is done, learn Servlet and JSP, and then classic Struts2, Hibernate and Spring. When learning the framework, focus on understanding the operating principle of the framework, and even try to write a lightweight framework yourself. The best way to understand how it works is to read the source code or thank the open source project in Java. In the meantime, we need to find more projects of all sizes to complete, not necessarily large, but exquisite and fully functional, so as to practice what we have learned in doing projects and find out the shortcomings in our knowledge system. As for watching videos, I don't recommend it. Many students know that they watch videos all day. As we all know, the truth of programming lies in "practice, practice, practice again"!

I suggest taking a look at this carefully designed learning route:

Once again, when learning java, you will encounter all kinds of exceptions. Please accumulate these exception information, as well as how the exception appears and how to deal with it, because there are only a few common exceptions in Java. Accumulate more, the ability to deal with problems will be improved, and the level will be improved quickly!

SpringMVC has increased rapidly in recent years, and may replace Struts2 in the future, but no matter how it changes, these are still MVC patterns. What can you do after understanding this model? The MVC framework should be fast.

The changes that enterprises need are also reflected in big data. Because of the popularity of Hadoop, there is another Java application scenario. So those who don't like the web can consider learning big data.

Another popular scene is naturally Android. To learn Android, you still need to have the foundation of JavaSE and the understanding of +HTTP protocol, and then you can start with the knowledge of Linux.

Let's talk about finding a project first. Beginners may encounter problems at a loss. In fact, at the beginning, everyone started with imitation. For example, learning jsp+Servlet can imitate forums such as v2ex. After learning SpringMVC, I try to reconstruct the code of the forum and provide a restful interface for clients to access (Android, IOS, web, etc. It is not difficult to make a forum, imitating a group buying website. It still doesn't have to do all the functions, but the functions should be stable and exquisite. Or developing a WeChat public platform is a good project.

Novices look at the source code. Some people recommend Struts2 and spring, but I believe that 9 beginners of 10 can't understand it. Let's start with the simple ones, such as Apache's Commons library, such as lang, dbutils, io, etc. These are all very good codes, and the number of classes is small and the quality is good. Knowing this, your basic level is by no means improved a little.

Remind beginners again that learning programming is not as simple as you think. You must practice more and think more. The most important thing is that you are interested in it. Now many websites and media promote the slogan of 1 month to learn the front end and join BAT for three months. This is just a slogan. Don't take it too seriously. There is no shortcut to this road, just write your code!