Java is a platform. I just want to talk about my views on learning Java well. I hope it will be helpful to beginners.
1. Think about it
Before learning Java, don’t be impatient, calm down and think about it carefully:
1) Are you interested in learning Java?
2) Can you calm down and study unremittingly?
Well, this is an easy question but one that should never be ignored. If you are sure that you are interested in Java and are prepared to endure hardship, then you can learn Java well! If you meet these two conditions, please continue reading...
2. Get ready
Please do not treat your journey of learning Java separately from other computer technologies. Technologies are often inextricably linked. You should master some basic knowledge involved in learning Java. For "How to set up CLASSPATH", "Kneel down" You should not ask questions such as "JDK download address" because there are too many answers on the Internet. Or even put it another way, are you not suitable for learning programming directly?
1) Buy a java learning book .
The official version of JDK 6 has just been launched. You can’t buy JDK 6 books on the market for the time being, but I still recommend you to buy a Java book about the newer JDK version that is suitable for getting started. Then, you should choose a book about JDK 5 now. Introductory books still have conditions. I can recommend some introductory books, but I am not going to do so, because what suits my taste may not be suitable for you. But in any case, "Thing In Java" should never be your first book to get started with Java!
Remember, there are many resources for learning Java on the Internet, but they are basically not systematic enough. Having an introductory Java book is the basis for you to learn Java systematically.
2) Prepare a Java learning environment.
Preparing your learning environment is very simple. Install JDK 6, and then use a text editor like UltraEdit and EditPlus to configure your learning environment. There are many articles on the Internet about how to configure it. If you are new to Java, it is not recommended to use IDE tools. By typing code line by line, you will encounter many problems. Only in this way can you learn how to solve problems and deepen your understanding of Java.
When you are ready, start the exciting Java learning journey!
3. The road to basic Java learning
Although the process of learning Java is more difficult, it is exciting everywhere! You must maintain a focused attitude during the learning process. There are a lot of "PKs" between languages on the Internet, so don't be affected by impetuosity! If you identify Java, stick to it! Overcome your inner demons and perseverance will reward you in the end.
The Java system is divided into Java SE, Java EE and Java ME (before JDK 5.0, they were called J2SE, J2EE and J2ME respectively). The stepping stone to Java is Java SE, which is what you need to learn, no matter which system you choose in the future. As a development direction, you have to start with Java SE.
Learn Java SE and lay a good foundation in Java; if you want to learn Java EE (sorry, I don’t understand Java ME, so I can’t cover Java ME related content), as for whether you need to learn AWT and Swing, I personally think you still need to know why, especially its event processing mode. I strongly recommend that beginners must understand it, and other specific developments may not necessarily You have to master it comprehensively. After all, the content of AWT and Swing is enough to be described in detail in several large books; of course, if your job is to develop AWT and Swing, that is another matter.
I/O and Thread are one of the foundations.
4. Java EE learning path
Learning Java SE is only the first step in completing the "Long March".
Next, choose to learn Java EE or Java ME (or you want to continue to learn Java SE in depth, as long as you like, you can keep going in depth, as mentioned before, I will not talk about the learning of Java ME); estimated There will be more learners choosing Java EE. Java EE involves many technologies. Considering the acceptance level of beginners, I will try to introduce it from the most commonly used perspective.
When learning Java EE, it is not recommended to use a text editor in the development environment. I feel that NetBeans 5.5 (the highest official version currently) is very suitable for beginners. I personally also like NetBeans. If you like to use other IDEs such as Eclipse, it doesn’t matter. Question, it depends on what you like.
4.1 Learn JSP/Servlet
The highest version of Java EE is currently version 5.0.
in Java In EE, you must first learn JSP/Servlet (combined with Tomcat, mysql) technology. It is recommended to master the knowledge of JSP1.2/2.X. After all, many systems in use are still based on JSP1.2. To learn JSP, you must also master one Some extension technologies, such as: you need to master the basic knowledge of HTML, it is best to master some JavaScript (one of the currently popular AJAX technologies), CSS technology, and understanding XML is essential (at least the descriptive configuration information is described through XML). In the process of learning JSP/Servlet, you should combine learning JDBC and database development technology. After all, most Java Web projects are closely integrated with databases.
4.2 Learn database development technology
Here I want to focus on database development technology. Database technology is an essential skill for building business systems. Java Web developers should master the use of SQL statements at a minimum! Database technology can be roughly divided into DBA technology and database development technology. For development, the focus should be on database development technology, and basic database operations must also be mastered. Commonly used databases include DB2, Oracle, SQL Server, MySQL, etc. You can choose a database based on your actual needs and make great efforts to master its development technology.
Remember, learning database development technology and learning Java EE are relatively independent. You can learn database development technology (such as SQL statements, etc.) while learning JSP/Servlet, or learn database development technology first and then learn JSP/ Servlets.
4.3 Learn other Java EE development technologies
Going forward, you can learn some EJB knowledge. The latest version of EJB is currently 3.0, which is quite different from the previous 2.X version. Considering that there is still a large application market for EJB 2.X, it is recommended that Combined with learning EJB 2.X/3.0. In the process of learning EJB, you should also master the use of an enterprise-level application server (such as WebSphere, Weblogic, Sun Applcation Server or JBOSS, etc. Currently, both Sun Applcation Server 9.X and JBOSS can support EJB 3.0).
In subsequent studies, we will gradually expand to other Java EE technologies.
5. After
When you have some insights into Java EE, you will naturally want to continue to expand your knowledge. At this time, you can learn Spring, Hibernate, and various Web frameworks (such as Struts, JSF, Webwork, or Tapestry, etc.).
With the continuous accumulation of technology and experience, you will gradually focus on higher-level knowledge such as analysis and design. At this time, you can further learn related UML, patterns and other knowledge (after accumulating a certain amount of experience, you can arrange yourself to learn these knowledge).
6. Summary
Always remember: from beginning to end, practice is an extremely important part of the process of learning Java technology. Without practice, you cannot learn technology well!
There is still no silver bullet in Java learning and practice. Moreover, there is a lot to learn as you go step by step. Diligence is golden!
Be good at making use of the many resources on the Internet and learn more from other people's experiences.
There are currently many debates about Java, such as "Java is on the decline", "Ruby will definitely replace Java" and other arguments are rampant, but as I said before, this is a sign of impetuousness. The future of Java is very good, especially Java After open source! Just let them argue. If you master Java, you will master the hottest technology at the moment.
"The fragrance of plum blossoms comes from the bitter cold." When you master a solid foundation of Java development, you will be able to dance the "Dragon Slaying Knife" and "Eternal Sword" in your hands with great fanfare! At that time, you will definitely have a sense of accomplishment.
I hope you all like Java, learn Java well, do a good job, and live a good life!