How to learn Java (ZT)

zhaozj2021-02-12  151

Many netizens asked me if I have learned Java, I said, "No, I'm only ripe." But I am very willing to write some of my experiences to learn, so that the later people will bent, help others are the biggest happiness! To learn Java, you must first know the general classification of Java. We know that since SUN has launched Java, we will try to make it out, so Java has developed to the present, and it is divided into three blocks according to application: J2SE, J2ME and J2EE, this is Sun One (Open Net Environment )system. J2se is the standard version of Java2, mainly for desktop applications; J2ME is primarily applied to embedding, such as mobile phones and PDA programming; J2EE is the Enterprise Edition of Jav A2, mainly used for distributed network programs Such as e-commerce websites and ERP systems. J2SE development desktop application compared to VC, VB, Dephi these traditional development languages, the advantage is not obvious. J2ME For beginners, it seems to be a little deep, and general developers have difficulty developing the environment. So now the most widely used and best student is J2EE. J2EE includes many components such as JSP, Servlet, JavaBean, EJB, JDBC, Java Mail, etc. It is not a one or two things to learn. So how do you learn J2EE? Of course, Java grammar first look at it first, I / O bag, util package, lang package, are you very familiar? Then learn from JSP. If you have learned HTML, then things have to do more, if not, then you will make up a filling of the HTML foundation. In fact, there are not many JAVA syntax in JSP. It is more like a scripting language, a bit like ASP. Then you have learned a servlet. Servlet is a server-side applet, and he is responsible for generating an HTML file sent to the client. JSP is executed, and it is also converted to servlet and then run. Although JSP can completely replace servlet, this is also the intention of Sun launches JSP, but servlet is used to control the process jump or convenient, and the program is clearer. Next, you should learn Javabean, maybe you have long been seen whether JSP is chaotic in HTML, this way is there again? Fortunately, Sun provides JavaBean to encapsulate JAVA code in your JSP, making it easy to reuse. Then EJB, EJB is Enterprise Javabean, see the name, it is Javabean, but it is still different from JavaBean. It is an architecture that you can build safer and more stable enterprise applications. Its large number of code has been completed by the middleware (which is the WebLogic, WebSphere, the J2EE server we often, so the number of procedures we have to do is very small, most of which are designed and configured in the middleware. As for JDBC, I don't have to say more. If you use Java to edit the database, you should be familiar. Also, if you want to send an email with Java, you have to look at JavaMail. Ok, after Java and J2EE have some basic concepts, you should compose some programs, don't talk on the paper.

It is best to find some instances and discs with discs. This way you see a good program, you can directly Ctrl C and CT RL V, you don't have to use your old holder to lose it again, then directly copy I don't have to be afraid of an error, why not! There is also some good Java programming articles, there is a good article to be cut, there is a problem, however, as long as the problem is not too stupid, the masters will answer you. Here is a few good Java programming websites: 9CBS Forum http://www.9cbs.net/ China's most famous technical forum, "Programmer" magazine is published, you can ask questions above, immediately Someone answered you, if you feel good, you can add points to the man; Java Research Group http://www.javaresearch.org/ There are many original articles on it, the master is still very much; Java developer http: // www .chinajavaworld.com / there is also a more comprehensive; java.com.cnhttp://www.java.com.cn/ Look at this domain name, you know how to have a bull, the registered user is getting 10,000, and the number of online people is also in one. Thousands, very popular; IBM's developer network http://www-900.ibm.com/developerwor...ava/index.shtml IBM forever blue giant, then my book also looks, the program is also I did it, someone asked me that I can solve my problem. Is it a master? Of course, it is not so simple, this is just the first step in the Long March. Do not believe? Then you go out and pick a project, do you know how to get started? Do you know how to design? Do you know how to organize personnel to develop? You now have some scattered code in your mind, there may be no other thing! What you are most lacking now is the actual work experience, rather than books that you want to come out. So you will find a Java programming work (if you can do part-time jobs in school), raise yourself in practice, that is the fastest. But you have to pray in a master in the public, and he is willing to teach you anymore, this seems to be a bit difficult! There is also a way to read an open source program. We know that the open source is mostly from the master. They have reasonable design, considering thoughtful, coupled with the majority of programmers to participate, the value of the code is naturally the word beads, powerful (sorry, even the "gold four talents" too much). Two open source procedures to learn Java must read is Jive and PE T Store. JIVE is a very famous BBS program, fully open source. The design of the forum uses many advanced technologies such as cache, user authentication, FILTER, XML, etc., and the forum fully blocks the interview with the database, which can be easily transplanted in different databases. The forum also has a convenient installation and management procedure. This is a part that we are easily ignored when we usually program (Chinese programmers generally pay attention to the technical content of programming, but do not consider the user's feelings, this is our gap between us with foreign software The location). JIVE's information is available on many websites, you can find it. I believe that after reading the code, there will be a feeling of reborn. Unfortunately, JIVE will no longer have no conditional open source, while there is a License restriction. Fortunately, there is also a first-class Java programmer in China to pay attention to it. Foreigners do not open source, is the Chinese can't open source? Here you recommend a Chinese JIVE version? J Tao.

JIVE (J Dao Edition) is a famous Banq, a famous Banq, a famous Chinese Java, has adapted, and all Chinese, including some practical functions, such as map, user avatar, and user data query, and there is a development team in non-stop upgradin. You can visit Banq's network http://www.jdon.com/ to download. The PET Store is Sun Company to demonstrate its J2EE programming specification, it should be very authoritative. Friends who want to learn J2EE and EJB don't miss it. Interestingly, PET Store also often serves as a comparison of the product performance of major J2EE manufacturers, even Microsoft has also made a PET Store tried to prove that .NET performance is more than J2EE, how deep the example of PET Store is. You will be happy to say, haha, it is so simple to become a Java master! I remember that Tomjava has encountered a project manager, claiming that Java is very simple, just three months can learn. In fact, the person who said this kind of saying is like "three months to win China" as a small Japan. Not Tomjava, you are cold, you just learned Java's skeleton, but did not learn Java's essence. Next you have to study the design pattern. The design pattern is a high-end programmer truly masters a compulsory course for object-oriented core ideas. The design pattern is not a specific "technology". It tells the idea. It not only shows the flexible application and wisdom of the interface or abstract class in the actual case, so that you can truly master the application of the interface or abstract class, thus The original Java language is jumped, more importantly, the design model repeatedly emphasizes a purpose: to make your program can be reused as possible. About design patterns, or recommend Banq net http://www.jdon.com/, he interprets the 23 models of GOF in a generous way, pure Java description, is a classic classic. Have time to study the MVC structure (separating Model-V Iew-Control separate design ideas), now very popular Structs is an implementation method, but StruCTS is really very difficult, we only need to learn its essence That is, we can completely design your own MVC structure. Then you study the software refactoring and limit XP programming, I believe you will last. After doing this, you better sort out your Java code, organize those classic procedures and common applications, and then carefully create, improve their reuse and scalability. You find a few like-minded friends to set up a studio. You can take some projects, you may have some difficulties, but you have technical accumulation, think about week, next project to make it quickly, believe everyone I will come to you later, so Money is coming. . . . . . Of course, you can also participate in some open source projects, on the one hand, you can improve yourself, on the other hand, it is also contributed to the Chinese software business! Developers use CVS to develop in the Internet, with QQ, MSN, E-mail discussion, and the programmers in Tiannan Sea are divided into the same software at the same time. Is it very interesting? Here is two good open source project sites: Hubei software public development is flat http://gro.clinux.org/ Co-founded http://cosoft.org.cn/ Wow, I am so happy, I finally became a master. ! Non-also, not. The ancients cloud: "The time workers are Junjie".

转载请注明原文地址:https://www.9cbs.com/read-7162.html

New Post(0)