Those who say that java is easier to get started should be normal people, because in contrast, java has incomparable advantages. For novice programmers, this advantage allows them to write their own in java language faster Things, and there are not many bugs, and it is not prone to fatal problems.
So what are the advantages of java? Speaking of advantages, we need to look at the language in comparison to see what their advantages are.
Let me talk about the current mainstream development languages:
C , C ++ , JAVA
So the above three are all high-level languages, but in contrast, c is a low-level language in a high-level language. He is like 183 standing among the NBA players. It is quite tall when taken out alone, but inside it. It's low
Let's take a look first, the characteristics of the C language:
1. There are methods and no concept of classes;
2. Have the concept of strong data types;
3. Have the concept of strong sign;
4. Have a strong concept of lowercase;
5. The concept of pointer and memory management;
6. Compiled language;
Then this is something that you must know when you get started, because if you don’t know these things, this language is not an introduction; you can’t develop things without these things, and there are concepts such as multithreading that are not at the entry level; also That is to say, this language is just some basic language, and it does not provide a lot of library methods for developers to use;
Let's take a look at the features of C++:
1. There are methods and the concept of classes (where there are classes, there are polymorphisms, inheritance and encapsulation);
2. Have the concept of strong data types;
3. Have the concept of strong sign;
4. Have a strong concept of lowercase;
5. The concept of pointer and memory management;
6. Compiled language;
Then C++ entry also needs to know the above things, of course, the development speed of what he can do will be faster than c, because of the concept of classes, and the class library provided is much stronger than c, so he is more like c Something developed by a normal person, but the editor thinks that C++ is a bit more difficult than C because, compared with C, the things he needs to learn only increase.
Finally, let's take a look at the characteristics of java:
1. There are methods and the concept of classes (where there are classes, there are polymorphisms, inheritance and encapsulation);
2. Have the concept of strong data types;
3. Have the concept of strong sign;
4. Have a strong concept of lowercase;
5 There is no pointer and memory management;
6. More concept of virtual machine;
7. Compiled language;
So what is the advantage of java compared to c or c++? A comparison shows that there is no concept of pointers; there is an additional concept of a virtual machine; then these two concepts have completely lowered the threshold for java. Why? Let me talk about pointers first.
The concept of pointer: A pointer is a name that points to an address in computer memory. It operates on memory. Anyone who learns programming knows that pointers are as difficult to learn as the three mixed application problems of high school physics; it is a headache, and What is terrible is that memory leaks and wild pointers are prone to occur when they are not used well. Do not say that novices who have worked for several years have a headache when thinking about pointer problems; then there is no such thing in Java. It is replaced by a virtual machine, everything is done by the virtual machine, memory allocation and management are his work; and with the virtual machine, you can compile your program once and run it on different platforms, unlike The first two need to change the platform to recompile, and there are certain requirements for the compiler, and the problems that occur during compilation are also very depressing;
So normally speaking, Java is a little bit more introductory than C and C++, and there are many things that can be done, but there are no two advantages to the needle, Java also has disadvantages, that is, its speed is worse than that of C++ and C. The hardware requirements are relatively high; in short, the easier the language to use, the slower the running speed, because they are always inseparable, and the final register is 00101010101010. This thing, like Java, is used by people. In the middle, it has to go through c++, c, assembly, and finally to 010001010101, so its speed is slow; there is a language that is easier to use, js, which is as simple as it has no concept of data types and no concept of compilation. It can be run directly; of course, the speed is not fast;
Well, having said so much, I believe I have explained to my friends the reasons why java is so easy to get started. As for what language my friends want to learn, it depends on their own hobbies. Some people just like to play pointers and think they are very handsome. The code you write can’t be understood by others. Of course it’s not too cool. All roads lead to Rome, so please take care of yourself.
At last
If you want to learn Java, I will share some Java learning materials with you. You don’t have to waste time searching everywhere. I have compiled all the materials from Java entry to proficiency. There are 6000G in total. These materials are all made by me. Java’s latest Java learning routes compiled in recent years, Java written test questions, Java interview questions, Java zero-based to proficient video courses, Java development tools, Java practice projects, Java e-books, Java study notes, PDF document tutorials, Java programmers Face-to-face, Java job application resume templates, etc., these materials will definitely bring you a great help in learning Java in the next. Every Java beginner must have it. Please enter my Java technology QQ exchange group: 127522921 to download by yourself . All the information is in the group file, so you need to communicate and learn more with you when you go in.