Java learning how to get started from getting started (1)

xiaoxiao2021-03-06  45

?????

The Java language is very large. When you start studying, you must not touch your mind, this requires everyone to have a little skill. Here, I told everyone some of my study experience.

First, let's talk about the general process of learning.

1. Learn about Java's programming ideas, especially object-oriented programming ideas. (To understanding)

?? But this part requires just understand, not skilled and proficient. If you tell me that he learns Java to fully understand the object-oriented thought (assuming that there is no other object-oriented language), I think he will be the second. Therefore, when you study at the beginning, you must not understand the specific differences between object-oriented and structured programming. Since we can't understand, we don't have to force yourself to understand. Instead, in the continuous learning process, learn the programming ideas of Java through example and work. With the increase of your experience, many difficult problems will also be understood, this is water to the stream. In short, as long as you use it, you can use it. Many knowledge don't have a certain accumulation of experience. You will not understand it.

2, familiar with Java's basic syntax (proficient)

?? This part is very important, and you must learn the following in the early days of learning:

The structure of the Java program (for example: how to write a class, how to write an interface, how to inherit another class or reference an interface, if reference other classes, how to define, how to define variables, how to write a method, etc.) These are the most basic.

Java basic syntax (for example, how to write a loop, judgment, etc.

3, familiar with Java compilation environment (this part is the key to enhance confidence) (proficient)

?? Learn the above content, you need to practice, this will need you to install JDK, configure environment variables (actually need to match a PATH and ClassPath, and then use Javac and Java commands.

In addition, in order to facilitate finding, now you can start learning an IDE programming tool. We are now mainly using Eclipse. When learning visual programming tools, don't think about what you have now, you will focus on how to build a class, how to write content to encode in the file, how to compile this class, how to implement this class, how to debug Yes. Other functions will be used with you.

?? This stage should be more contacts, thoroughly study the content mentioned in the second point. At this time, you have been successful. (Everyone should be at this stage, so I have to do more contacts, I will give myself a question.)

4. What kinds of classes provide in JDK, what they can do (familiar)

Learn this time, your thoughts will also be more, for example, how do Java operate files, how Java handles time, I want to do what to do with string and so on. So, this time you have to completely understand what J2SE provides you with the ready-made features, there is no good way, you need to watch JDK's help.

If the Java class library is classified according to the function, you can clear the functionality of the class by the package name, so there is no need to study each class's function, but only need to study what you are doing. When you really want to use it, let's take a look at the instructions in the package. For classes inside the package, you only need to see the function class, don't go fine for the interface and the Exception class, or then you will have a process.

At the same time, everyone must learn Javadoc provided by JDK, this is a critical, otherwise it is said in white.

5, learn from the excellent code

Don't say more, everyone understands. Some people will ask, where is the good code? Tell everyone the best of the Java code is Sun's people, so everyone will see that Sun is available in JDK, and there is an example of the use of each class library. If you have energy, you can also look at the source code of the JDK provided by Sun.

6, Java other knowledge learning

The Java system is very large, but the basic idea is constant, the programming method is not changed. Just according to different areas, Sun also provides a lot of libraries for your use. So when you study, you will study what newly provided class library is doing, then you will see the examples of the provided, first in the cat, and you will learn. I am not a joke, real Java learning is so simple.

?

Summary, everyone must have confidence, learning is definitely there is a process, I wrote here, it is my experience, and I don't necessarily apply to everyone, but everyone must don't worry, to learn step by step. I believe I have no problem. In addition, in learning, there will be many problems. Everyone must be good at question. This time I assigned the corresponding technical guidance, they are helping you solve the problem. Don't be afraid of problems, don't ask questions, everyone comes from this time, no one will joke you. Finally, it is necessary to be good at summary, including the summary of knowledge, the summary of learning methods, only a good learning method can improve your learning efficiency, only a good summary of knowledge, in order to learn new knowledge in the future Foundation.

Believe in yourself, two months later, you are all qualified Java programmers.

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

New Post(0)