With the development of science and technology, more and more new things appear in front of us, and computers and mobile phones are becoming more and more popular. People are inseparable from the use of computers and mobile phones almost every day. When using these electronic devices, it is unavoidable to use software. This software is developed by software developers using programming languages.

Today’s programming languages are becoming more and more diverse, from the machine language at the beginning to the high-level language, from the C language to the Python, GO, etc., these languages are changing our lives, today I Will introduce a language I am more interested in, Java.

Java is my first year of contact with the C language. Since I learned Java, I have discovered how convenient Java is to use. It is not as cumbersome to operate as C language. Now let me introduce Java.

Java is an object-oriented programming language. It is not as cumbersome as C language and has pointer operations, and it is not as difficult to understand as C++. It absorbs various advantages of C++ language and abandons the incomprehensible in C++. part, including multiple inheritance, pointers, etc. Java has the characteristics of cross-platform, object-oriented, security, and high performance. At present, there are three main architectures, namely JAVAEE (Enterprise Edition), JAVASE (Standard Edition), and JAVAME (Small Edition).

Using Java requires setting up the Java language environment, which is required for most languages. We can search for information on Baidu and find solutions if there are problems during the installation process.

Learning a programming language seems to start with “Hello World” at the beginning. The Java language is not difficult, so we can type out a “Hello World” first, although we may not understand anything at first, But as we study deeper, every meaning here will be understood. For example “class HelloWorld{public class void main(string[] args){System.out.println(“Hello World”);}}” will output “Hello World”. Like other languages, Java has its own basic syntax, which mainly includes keywords, identifiers, comments, constants and variables, operators, statements, functions, and arrays. In Java, there are 48 keywords, including “abstract, assert, boolean, final, return while, for”, etc. There are two reserved words “goto, const”. Comments in Java, if it is a single-line comment, we can use “//“ to indicate. If it is a multi-line comment, we can use “/comment content/“ to indicate. There are also different types of variables in Java. These variables cannot be arbitrarily calculated. If necessary, you can use forced type conversion, and add the data type of another variable you need to convert to in front of the variable. The program flow control is similar to the writing method of the C language. We can use “for” or “while” to traverse, and “if” to perform conditional judgment. We can express some simple statements directly, but when we write more and more content, we need to encapsulate the statement into a function for use.

In Java, the important thing is the idea of object-oriented, C language is process-oriented, and Java is object-oriented. This kind of object-oriented thinking is more in line with our thinking habits, which can simplify complex problems and make the executors in the process become the commanders of the objects. At the same time, learning Java cannot help but understand the three major characteristics of Java, namely encapsulation, inheritance, and polymorphism. Encapsulation is to privatize the properties of a class, modify it with “private”, and then access and modify it through the public method “public”; inheritance means that if a subclass inherits the parent class, then the subclass can use the methods and properties of the parent class, And you can add new methods and properties on this basis; polymorphism is a variety of forms, and a class can have multiple manifestations. Although we may not understand it at first, with the in-depth study, we understand that it is these characteristics that make us more efficient when using development.

At present, more and more programming languages appear in the public eye, and many people will consider which programming language is better to learn, but in my opinion, a programming language is just a tool, and these languages are interoperable. Once you learn one programming language, other programming languages are much faster to learn. Any language has its own advantages, we can choose according to our own interests.

Attention: This is just an assignment, if you need to learn Java, please refer toOfficial Java Documentation_w3cschoolandJava | Oracleand so on.