Experience Sharing: How to quickly become a Java master

Source: Internet
Author: User

Many netizens asked me if I had any shortcuts to learning Java. I said, "I have no choice but to learn Java ". However, I am willing to write out some of my learning experience so that later users can take less detours and help others is the greatest pleasure!

To learn Java well, you must first understand the general classification of Java. We know that since Sun launched Java, it has made every effort to make it all-encompassing. Therefore, since its development, Java has been divided into three main parts by application: J2SE, j2-and J2EE, this is the SunONE (OpenNetEnvironment) system. J2SE is the standard version of Java2 and is mainly used for programming desktop application software. J2SE is mainly used for embedded system development, such as mobile phone and PDA programming. J2EE is the Enterprise Edition of Java2, it is mainly used for the development of distributed network programs, such as e-commerce websites and ERP systems. Compared with traditional development languages such as VC, VB, and DEPHI, J2SE does not seem to have obvious advantages in developing desktop applications. For beginners, it seems a bit esoteric, and it is difficult for developers to have a development environment. So J2EE is the most widely used and best to learn. J2EE includes many components, such as Jsp, Servlet, JavaBean, EJB, JDBC, and JavaMail. It's not a day or two to learn.

So how can we learn J2EE? Of course, I/O, Util, and Lang are all familiar with Java syntax? And then learn from JSP. If you have learned HTML, there are a lot of things to do. If not, you can add the HTML basics. In fact, there are not many Java syntaxes in JSP. It is more like a scripting language, a bit like ASP. Then you should learn Servlet. Servlet is a server-side applet that generates HTML files sent to the client. During execution, JSP is converted to Servlet before running. Although JSP can completely replace Servlet in theory, this is also the intention of SUN to launch JSP, but Servlet is very convenient to control the process jump, it also makes the program clearer. Next, you should learn about Javabean. Maybe you have long looked at the confusing way JSP embeds Java code in HTML. What is the difference between this method and ASP? Fortunately, SUN provides Javabean to encapsulate the Java code in your JSP to facilitate calls and reuse. Then, EJB is the EnterpriseJavaBean. The name seems to be a Javabean, but it is different from the Javabean. It is an architecture where you can build safer and more stable enterprise applications. A large amount of code has been completed by middleware (also known as Weblogic and Websphere J2EE servers), so the amount of code we need to do is small, most of the work is on designing and configuring middleware. As for JDBC, I don't need to talk about it. If you have compiled a program to access the database in java, you should be familiar with it. Also, if you want to compile a program for sending emails in Java, you have to look at Javamail.

Well, after having some basic concepts of Java and J2EE, you should compile some programs and never talk about them on paper. It is best to find some books with examples and CDs, so that you can directly Ctrl + C and then Ctrl + V to see a good program, you don't have to worry about making another mistake! There are also some good Java programming articles that need to be Cut down. If you have any questions, even if the question is not too silly, the experts will answer you. The following describes several programming websites in Java:

CSDN ForumHttp://www.csdn.net/

In China's most famous Technology Forum, programmers magazine is published by them. You can ask a question and someone will answer you immediately. If you think it is good, you can add extra points to the person;

Java Research OrganizationHttp://www.javaresearch.org/

There are a lot of original articles on it, and there are still a lot of experts;

Java developersHttp://www.chinajavaworld.com/

Java data is comprehensive;

Java.com.cnHttp://www.java.com.cn/

Looking at this domain name, we know how many cows there are. The number of registered users is almost 10 thousand, and the number of online users is also around one thousand, which is very popular;

IBM Developer NetworkHttp://www-900.ibm.com/developerWorks/cn/java/index.shtml

IBM Forever blue giant;

So I read the book and the program. I can solve all the questions asked by others. Is it true that I have become a master? Of course it is not that simple. This is only the first step after the long journey. Believe it? Then, if you go out to pick up a project, do you know how to do it, do you know how to design it, and how to organize personnel for development? There may be nothing else in your mind except some scattered code! What you lack most is actual work experience, rather than the programs created out of thin air in books. So you should find a Java programming job (if you are a student at school, you can work as a part-time employee) and improve yourself in practice, it is the fastest. But you have to pray to meet a master in the company, and he is willing to give you a hard time to teach you, it seems a little difficult!

Another way is to read the open source code program. We know that open source code is mostly from experts. They are well-designed and considerate. Coupled with the participation of a large number of programmers, the value of the Code is naturally the word, powerful (sorry, I have read more about the four talents in the gold market recently ). The two open-source programs required to learn Java are Jive and PetStore .. Jive is a well-known BBS program outside China and is fully open to source code. The design of the Forum uses many advanced technologies, such as Cache, user authentication, Filter, and XML, and the Forum completely shields access to the database, it can be easily transplanted to different databases. The Forum also provides convenient installation and management programs, which are easily overlooked during programming. (Chinese programmers generally only focus on the technical content of programming, but do not fully consider the user experience, this is the gap between us and foreign software ). The Jive information is available on many websites. You can find it for research. I believe that after you read the code, you will feel reborn. Unfortunately, since 2.5, Jive has no unconditional open source code and license restrictions. Fortunately, there are still top-notch Java programmers in China who are concerned about it. If foreigners are not open-source, can Chinese people not open-source? Here we recommend a Chinese Jive version-J. Jive (J-channel edition) is an adaptation of banq, a famous Java community in China, based on Jive2.1. It provides all Chinese characters and some practical functions, such as textures, user portraits, and user data queries, in addition, a development team is constantly upgrading. You can access banq's websiteHttp://www.jdon.com/

Download or go to the server of the Tongji Technical ForumFtp://nro.shtdu.edu.cnGo to the Forum and ask questions about the installation. Pet Store. (Pet Store) is an open source code program launched by SUN to demonstrate its J2EE programming specifications. It should be very authoritative. Do not miss it if you want to learn J2EE and EJB.

You will be happy to say, haha, it's so easy to become a Java master! I remember that Tomjava also met a project manager who claimed that Java was very simple and could be learned in just three months. In fact, people who say this are just as arrogant as Japan once claimed to be "winning China in three months. It's not about Tomjava. You just learned the Java skeleton, but haven't learned the essence of Java. Now you have to study the design model. The design pattern is a required course for senior programmers to truly grasp the core idea of object-oriented. The design pattern is not a specific "technology", it tells the idea, it not only shows the flexible application and wisdom of interfaces or abstract classes in actual cases, this allows you to grasp the applications of interfaces or abstract classes, so as to take a step forward from the original Java language. More importantly, the design pattern repeatedly emphasizes a purpose for you: make your program as reusable as possible. I would like to recommend banq's website about the design patterns.Http://www.jdon.com/He interpreted the 23 GOF modes in a simple and easy-to-understand manner. The pure Java description is really a classic. If you have time to study the MVC structure (the design idea of Splitting Model-View-Control), Structs is a popular implementation method, however, Structs is very complicated to use. We only need to learn the essence of Structs. We can design our own MVC structure. Then you will study software Refactoring and extreme XP programming, and I believe you will go further.

After completing these steps, you may wish to organize your Java code, sort out the classic programs and common applications, and then carefully create them to improve their reusability and scalability. Let's look for some more like-minded friends to set up a studio. You can undertake some projects. It may be difficult at the beginning, but you have accumulated technical skills and have a thorough consideration, the next project can be completed quickly. I believe everyone will come to you in the future, so Money is coming ......

Of course, you can also participate in some open-source projects. On the one hand, you can improve yourself, and on the other hand, you can also contribute to the Chinese software industry! Developers use CVS for cooperative development on the InternetQQ,MSNIs it interesting that programmers from all over the world develop the same software at the same time?

The following describes two good open-source project websites:

Public software development platform of Hubei ProvinceHttp://gro.clinux.org/;

ConsortiumHttp://cosoft.org.cn/;

Wow, I'm so happy that I have finally become a master! Neither. The ancients said: "The wise man is handsome ". Do you know the current development situation of the computer industry? Do you know the fight between Microsoft's. NET blueprint and the SUNONE plan? Do you know where computer technology will develop? In fact, from the recent actions of major computer manufacturers, we can see that "Web services will be the commanding heights of next-generation Internet applications", while Microsoft's. NET blueprint and SUNONE plan, that is, Web services. Web Service is a brand new distributed computing model, which is a series of standard integrations (XML, SOAP, UDDI, WSDL and WSFL ). It allows software written in different languages to be easily integrated, making network resources and Web sites a service rather than a messy waste. In the near future, we can order at home.

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.