Home > Java > javaTutorial > What language should you learn before learning Java?

What language should you learn before learning Java?

青灯夜游
Release: 2019-05-10 14:37:59
Original
2767 people have browsed it

What language should you learn before learning Java?

Java is a computer language. Before learning java, you don’t need to learn any other programming language. Of course, if you have some basic knowledge of c language, you will be better able to get started with java because:

1) Learning C language is learning Java, because at least 80% of the grammatical knowledge in C language is inherited by Java. The first half of Java, such as data types, variables, flow control, arrays, and functions, is almost identical to the C language.

2) C language is a representative of process-oriented language. Learning C language well will help you learn the object-oriented thinking in Java. As mentioned before, if you want to know what is process-oriented and what is object-oriented, you must make a comparison. After you finish learning C language, when you learn functions in Java, you will find that their syntax rules are exactly the same, but their usage is completely different. If you learn Java directly, you will feel that you should use it that way, so you will not be able to deeply understand what object-oriented is.

3) The most important thing in C language is pointers, which will be introduced in detail later. There are two knowledge points in C language that can be said to be unique to it, one is a function and the other is a pointer. Pointers in C language are the basis for understanding "references" in Java! The essence of references in Java is pointers. It is impossible to have a deep understanding of "references" in Java without understanding pointers. And if you cannot deeply understand "references" in Java, then you will basically not be able to understand slightly more complex Java programs.

The above is the detailed content of What language should you learn before learning Java?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template