Java's first learning and understanding

Source: Internet
Author: User

Let's talk about your knowledge of java. Java is an object-oriented language, while C + + is process-oriented. Java in the development and design of Web pages is essential, in addition we can use it to do mobile mobile development, there are some server-based architecture design. Java introduces the principle of virtual machines and runs on virtual machines to implement different styles of Java interfaces. Java Virtual machine is built on the hardware and operating system, the implementation of Java binary Code interpretation line function function, provided on the interface of different platforms. Java's language style is very close to c,c++, but different from them. Java discards the C + + pointers, operator overloading, multiple inheritance and other characteristics, in order to make the program more concise and easy to maintain, Java encapsulates the data in the class, the encapsulation and inheritance of the class so that the program code only one time, the main thing programmers need to do is to be responsible for the design and application of the class and interface. In Java. The inheritance of a class is single, non-multiplicity, and a subclass has only one parent class, and the parent class of the subclass has a parent class.

The first time we touch Java, we need to understand how to install it. There are two steps: Installing JDK and environment variable configuration. JDK is a great tool installation package: There are a lot of download files and installation packages, JDK compiler, JDK interpreter, Java class library functions, Java operating environment and so on. environment variable Configuration I think it is very difficult to fix the piece, according to the teacher's needs on the desktop right-click on the "My Computer--Properties, advanced environment variable", in the system variables we can see the system's various environment variables value. Double-click a variable to modify the value of a variable, separated by a ";" between the variables, if the environment variable is missing we can also create a new, JDK-related three variables: "Java_home", "path", "Classpath". Set the path of each variable in the JDK, then click "OK" to exit. Then call the command prompt, enter Javac, and if there is a help message showing Java, the environment variable configuration is successful. When the operation must be careful, the environment variable one can not be less, any one of the missing can cause a program failure, unable to run. The most important thing is to add the correct installation path when setting the environment variable value. Once the configuration is successful, we can start running the Java program.

Java's first learning and understanding

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.