Java Key knowledge

Source: Internet
Author: User

First, Java basic knowledge point

Java was introduced by Sun in 1995, and in 2009 Sun was acquired by Oracle, so Oracle acquired Java Copyright. The bottom is written in C, and Java is divided into three systems:

    • Javase, the Java Platform standard Edition,java Platform standards Edition.
    • Java EE, the Platform Enterprise Edition,java Platform Business Edition.
    • Javame, the Java Platform Micro Edition,java Platform Mini -version.

The Javase Standard Edition is more basic syntax, and Java EE is for enterprise, extending some other functions, it can be said that Javase is a subset of Java EE. and Javame used very little, do not discuss.

  

In addition, Java has the following features to be more important:

    • Simple. Its syntax is close to C + +, but does not use the complex concepts of operator overloading, multiple inheritance, pointers, etc., and provides an automated garbage collection mechanism similar to JavaScript.
    • Object-oriented. The biggest feature of Java is Object-oriented. Provides concepts such as classes, interfaces, inheritance, and so on.
    • Distributed language. Support the development of Internet applications, there is an application programming interface (Java net) in the basic Java application programming interface.
    • Neutral architecture. Java programs ( files that are suffixed with Java) are compiled into an architecture-neutral bytecode format (a file with a suffix of Class) on the Java platform and can then be run on any system that implements the Java platform.
    • Support Multithreading. Unlike JavaScript's single thread, the Java language supports multi-threading and is created through the thread class.

  

Ii. Java Development tools and installation configuration

 

(1) JVM, JRE, JDK, SDK, Eclipse distinction and contact.

The JDK (Java Development Kit) is the Java Language Development Kit (SDK). In the JDK installation directory there is a JRE directory, there are two folders Bin and Lib, here you can think of the bin is Jvm,lib is the JVM to work the class library, and the JVM and Lib together become the JRE.

The JRE (Java Runtime Environment) is the Java Runtime Environment, which includes the JVM standard implementation and the Java Core Class library. The JRE is a Java operating environment and is not a development environment, so it does not contain any development tools such as compilers and debuggers.

The JVM, the Java Virtual machine, is a specification for computing devices, a fictional computer that is implemented by simulating various computer functions on a real computer.

(Reference from article: 51819046)

As above, so the JDK is the core of the entire Java, and the JRE is the set of environments that the Java program must have, including the JVM standard implementation and the Java Core Class library. The JVM is the most central part of the entire Java implementation across platforms and is capable of running programs written in the Java language.

And Eclipse is a convenient development tool for us to write Java programs, it is not necessary, as we write the front-end HTML page, you can use Notepad to write, of course, you can also use sublime this development tool to write.

(2) Java Development Environment configuration

We can download the JDK on the Oracle company website and then select the JDK file corresponding to the native operating system, and install the JRE at the same time as the JDK is installed.

After installing the JDK, we need to configure the environment variables, need to configure the Java_home, PATH, CLASSPATH (case can be), where Java_home is the JDK installation directory, and CLASSPATH.  %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; Path is%java_home%\bin;%java_home%\jre\bin; (in some cases an absolute path is required). For 1.5 or more versions of the JDK, you do not need to set the CLASSPATH environment variable to compile and run the Java program properly.

In the cmd run Java-version, Java, javac several commands, there are related information, no error, it indicates that the environment variable configuration is successful.

  

  

Java Key knowledge

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.