Almighty Lin Yu said: An article teaches you how to do the resume required "to have a solid Java foundation."

Source: Internet
Author: User

Origin

  

This article is from the first and the group of ape Friends of the communication, the specific situation and listen to the LZ slowly.

A day, LZ in the group, "Recruit." ”

But a group of friends said, "group master, I want to go." ”

LZ back to it, "Your year geometry?" ”

Group Friends Yue, "two years also." ”

LZ regrets, "cherish, three to five is good." However, if you have a solid foundation, and attached skills, it is not not. ”

The group of Friends Confused, asked, "What is skills?" ”

LZ Fu must answer Yue, "can, one of my skills is to write." ”

Group friends and asked, "What is a solid foundation?" ”

LZ Fu * * replied, "Play good jdk! ”

  

Introduction

  

Well, LZ finally can say the words, please forgive the LZ of classical Chinese, this forced to wear good tired. In fact, many people for the company's recruitment requirements written, to have a "Solid Java Foundation", are very confused.

What the hell does that mean? What counts as the Java Foundation? What is the degree of learning to be considered solid?

The answer to these questions, LZ has been used in classical Chinese to tell you, cough, the answer is to play a good JDK can be.

But the JDK this thing contains too many things, the group of ape friends still can not carry out what should be learned, so, LZ wrote a special article, to say how the JDK should play.

Perhaps some ape-friends would ask, "who is Lin Yu?" ”

Well, that's a good question! Lin Yu is the protagonist of a programmer's novel, Rumor knows everything, see you know it.

  

Play a good JDK

  

In detail before the JDK, LZ first to emphasize, the content of this article, are the LZ personal subjective judgment. Therefore, the apes must combine their judgment, then decide whether to learn, and how to learn.

In addition, this article just tells you what to learn and to what extent, this article will not contain too many specific technical details to explain.

The JDK is actually an abbreviation for the Java SE Development Kit, and it's not easy to play well. The JDK contains three main parts, the first part is the Java Runtime Environment , which is actually the JVM. In addition, the second part is the basic class library of Java , the number of this class library is very considerable. Finally, the third part is the Java development Tools , they are to help you better use of Java tool.

Then obviously, to play a good JDK is to play the three parts of the JDK. Next, let's take a look at each part, what to learn and how to learn.

  First part: Java Runtime environment

This part is actually called the JRE, and its core is actually a thing, is the JVM.

JVM this thing, it's important LZ don't want to stress again, in the previous article "How to prepare to answer Ali's interview, by the way, for the Java Program Ape Learning in various stages of the proposal", LZ said that the JVM that book is even more important than "Thinking in Java", This is already a demonstration of how the LZ values the JVM.

Of course, just LZ value, of course, no eggs, but as long as Java slightly advanced a little bit of the job, this part is basically the interview must ask the content, this more illustrates the importance of the JVM.

  So, for the JVM, there is nothing to say, is to learn from the dead, to the death of the study, how deep it can be!

  Part II: Java's base Class library

Java's base Class library has come into contact since you started learning Java, but until you end your entire career in Java, you don't necessarily have to see all the classes.

What does that mean? Does this mean that the Java base Class library is huge?

Wrong! Wrong! What this really means is that there are a lot of classes that you don't have to care about, because they're not necessarily accessible from the fact that you touch Java to give up.

  Therefore, it is necessary to figure out which classes are important and which are not important. This allows you to do the most valuable things in the shortest time possible.

First of all, what are the packages for the Java base Class library, in order to make this article more representative, we take JDK6 's package list.

Java.applet java.awt Java.awt.color java.awt.datatransfer java.awt.dnd java.awt.event java.awt.font Java.awt.geom java.awt.im java.awt.im.spi java.awt.image java.awt.image.renderable java.awt.print Java.beans Java.beans.beancontext java.io Java.lang java.lang.annotation java.lang.instrument java.lang.management Java.lang.ref java.lang.reflect java.math java.net java.nio java.nio.channels java.nio.channels.spi java.nio.charset Java.nio.charset.spi java.rmi java.rmi.activation java.rmi.dgc java.rmi.registry java.rmi.server java.security Java.security.acl java.security.cert java.security.interfaces java.security.spec java.sql java.text Java.text.spi Java.util java.util.concurrent java.util.concurrent.atomic java.util.concurrent.locks Java.util.jar Java.util.logging java.util.prefs java.util.regex java.util.spi java.util.zip javax.accessibility javax.activation Javax.activity javax.annotation javax.annotation.processing javax.crypto javax.crypto.interfaces javax.crypto.spec Javax.imageio JAvax.imageio.event javax.imageio.metadata javax.imageio.plugins.bmp javax.imageio.plugins.jpeg Javax.imageio.spi Javax.imageio.stream javax.jws javax.jws.soap Javax.lang.model javax.lang.model.element javax.lang.model.type Javax.lang.model.util javax.management javax.management.loading Javax.management.modelmbean Javax.management.monitor Javax.management.openmbean javax.management.relation Javax.management.remote Javax.management.remote.rmi Javax.management.timer javax.naming javax.naming.directory javax.naming.event Javax.naming.ldap javax.naming.spi javax.net Javax.net.ssl javax.print javax.print.attribute Javax.print.attribute.standard javax.print.event javax.rmi Javax.rmi.CORBA javax.rmi.ssl javax.script Javax.security.auth Javax.security.auth.callback Javax.security.auth.kerberos Javax.security.auth.login Javax.security.auth.spi javax.security.auth.x500 Javax.security.cert JAVAX.SECURITY.SASL Javax.sound.midi Javax.sound.midi.spi javax.sound.sampled Javax.sound.sampled.spi Javax.sQL javax.sql.rowset javax.sql.rowset.serial Javax.sql.rowset.spi javax.swing javax.swing.border Javax.swing.colorchooser javax.swing.event javax.swing.filechooser Javax.swing.plaf javax.swing.plaf.basic Javax.swing.plaf.metal Javax.swing.plaf.multi javax.swing.plaf.synth javax.swing.table javax.swing.text javax.swing.text.html javax.swing.text.html.parser javax.swing.text.rtf Javax.swing.tree Javax.swing.undo Javax.tools javax.transaction javax.transaction.xa javax.xml javax.xml.bind javax.xml.bind.annotation Javax.xml.bind.annotation.adapters javax.xml.bind.attachment javax.xml.bind.helpers Javax.xml.bind.util Javax.xml.crypto javax.xml.crypto.dom Javax.xml.crypto.dsig Javax.xml.crypto.dsig.dom Javax.xml.crypto.dsig.keyinfo javax.xml.crypto.dsig.spec javax.xml.datatype javax.xml.namespace javax.xml.parsers Javax.xml.soap javax.xml.stream javax.xml.stream.events javax.xml.stream.util javax.xml.transform Javax.xml.transform.dom javax.xml.transform.sax javax.xml.transform.stax javax.xml.Transform.stream javax.xml.validation javax.xml.ws Javax.xml.ws.handler javax.xml.ws.handler.soap javax.xml.ws.http Javax.xml.ws.soap javax.xml.ws.spi javax.xml.ws.wsaddressing Javax.xml.xpath org.ietf.jgss Org.omg.CORBA Org.omg.CORBA_2_3 org.omg.CORBA_2_3.portable org.omg.CORBA.DynAnyPackage Org.omg.CORBA.ORBPackage Org.omg.CORBA.portable org.omg.CORBA.TypeCodePackage org.omg.CosNaming Org.omg.CosNaming.NamingContextExtPackage Org.omg.CosNaming.NamingContextPackage org.omg.Dynamic Org.omg.DynamicAny Org.omg.DynamicAny.DynAnyFactoryPackage Org.omg.DynamicAny.DynAnyPackage Org.omg.IOP org.omg.IOP.CodecFactoryPackage Org.omg.IOP.CodecPackage Org.omg.Messaging Org.omg.PortableInterceptor Org.omg.PortableInterceptor.ORBInitInfoPackage Org.omg.PortableServer Org.omg.PortableServer.CurrentPackage Org.omg.PortableServer.POAManagerPackage Org.omg.PortableServer.POAPackage org.omg.PortableServer.portable Org.omg.PortableServer.ServantLocatorPackage Org.omg.SendingContext Org.omg.stub.java.rmi oRg.w3c.dom org.w3c.dom.bootstrap org.w3c.dom.events org.w3c.dom.ls org.xml.sax org.xml.sax.ext org.xml.sax.helpers 
View Code

What do you think? Is it scary? So many bags, but also so many unfamiliar package name, some even see have not seen, this special how to play?

Don't worry, LZ first take you to the sub-level of these packages, LZ will be divided into four levels of these packages.

  The first level: intensive reading source

This level contains the following packages:

Java.iojava.langjava.util
View Code

Intensive reading source, which is the highest level of demand. However, asking you to peruse the source code does not mean that these classes are the most important. But because, LZ think these classes are more commonly used, and relatively simple, to see their source code to help you see the source of the feeling, but also to understand the great God writing code style.

Look at the purpose of these sources, more to increase your ability to read code. Moreover, LZ here must emphasize, like exception and error this category, do not have to read the source, Pro.

In fact, the above three packages have one thing in common, that is, these three bags, basically you are the most commonly used. Lang Bao Needless to say, you can write anything to use, IO packet and util package is also your usual read and write files and use data structure is necessary.

Look at the source code from these commonly used bags to find the feel, LZ personally feel more appropriate.

 

  Second level: Deep understanding

  This level contains the following packages:

java.lang.reflectjava.netjavax.net. *Java.nio. *java.util.concurrent. *
View Code

Deep understanding, this seemingly lower than the level of intensive reading source requirements, in fact, is precisely the most important. The classes required at this level are all required to be understood in order to advance to advanced.

Of course, here to emphasize the point is that the LZ said these classes to understand deeply, and did not say to see their source code, not that the source of these classes can not see, or see useless. Instead, the source code for these classes is often very complex, and it takes a lot of time to understand the details, so it's not necessary to spend a huge amount of time researching such complex code.

However, if you are in the process of using these classes, encountered problems, this time if you look at their source code can be resolved, then do not be reserved, decisive look at the source to solve your problem, it is the most suitable to see the source of the opportunity.

Small to reveal, LZ looked at the JDK source code, basically all so look over. Encountered the problem do not Baidu and Google, see the source can solve your 90% problems.

In addition, it is not difficult to see the names of these four packages as to what each of them represents. Reflect represents the reflection, net represents the network Io,nio represents the non-blocking io,concurrent represents the concurrency.

These four guys can say that each one is enough for the interviewer to ask half, and that the contents of these four packages, if you want to understand deeply, actually involve a lot of other knowledge.

For example, if you want to understand clearly, do you have to figure out the class loading mechanism of the JVM? Network IO to be clear, do you want to know TCP/IP and HTTP, HTTPS? Include and contract, if you want to find out, do you want to understand the relevant knowledge of concurrency?

Therefore, it takes time and effort to fully understand the four packages.

But, please believe LZ, this is definitely worth, even can say, these four pack of enough, basically decided a Java programmer in the grade.

  

  Third level: can be used

This level contains the following packages:

java.lang.annotationjavax.annotation. *Java.lang.refjava.mathjava.rmi. *javax.rmi. *java.security. *javax.security. *Java.sqljavax.sql. *javax.transaction. *Java.textjavax.xml. *Org.w3c.dom. *org.xml.sax. *Javax.crypto. *Javax.imageio. *Javax.jws. *Java.util.jarjava.util.loggingjava.util.prefsjava.util.regexjava.util.zip
View Code

Can be used, this level of requirements is obviously, it will be used. Most of these packages are used in certain situations, but they are not always used.

Just like the SQL package and the transaction package, which is used to manipulate the database. XML, Dom, and sax are all used to manipulate XML. Other packages are similar, with the use of annotations, with remote method calls, there are also related to the use of encryption and so on.

These bags are generally not asked in the interview, so their importance is naturally much lower, but also do not need to deliberately to learn, using the study, will be used.

  

  Level four: Please ignore it

This level contains all of the packages not mentioned above.

This level does not have to be explained, the package that has not been mentioned so far, basically can be ignored, because you are basically unlikely to use them, such as swing, awt these things.

What the? You say you use them often?

If this is really the case, then LZ can only regret to tell you, jump-job, you stay in this company has no future, 0-0.

  

  Part III: Development tools for Java

  These development tools are mainly for you to develop, Javac should be the most common one, although you almost do not have to do it manually.

In addition, there are some more practical tools that can help you troubleshoot problems. And some interviewers will ask you such questions, such as asking what tools you usually use to troubleshoot problems.

LZ feel more practical several tools mainly have Jmap, Jconsole, Jstack, JVISUALVM, as for these tools have what role, LZ here do not mention, if you want to understand the details of these commands, you can go to Google or official online search, or very easy to find.

Of course, if you are interested, you can also go to the JDK Bin directory to find out, see if there is any more fun tools.

  

Summary

  

Okay, here's basically a "good jdk" thing to say.

In general, the first and second levels are the most important.

  more simply, the first level of those packages can be called the Foundation, the second level of those packages called advanced. As for the third-level and fourth-level packages, there is nothing to say.

Of course, the most important thing is that perpetual JVM, remember, theJVM is the root of your Java Foundation , is a great class, without the JVM it is a useless class file just.

If you want to have a solid Java foundation, then grab a good jdk. After playing a good JDK, do not forget to learn a skills, you can come to the LZ company interview.

Well, this wave of recruitment ads inserted, very vague, no problem, 0-0.

We'll see you next time, everybody!

Almighty Lin Yu said: An article teaches you how to do the resume required "to have a solid Java foundation."

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.