Java SE entry, JDK download and installation, first Java program, Java program compilation and execution

Source: Internet
Author: User

----------------------- Page 1 -----------------------

Java SE:

Java SE: Java Standard Edition
Java me: Java mobile edition
Java EE: Java Enterprise Edition

Java was launched by Sun (acquired by Oracle earlier this year ).

Price: USD 7.4 billion

J2se, j2-and J2EE

JDK: Java Development Kit (essential for Java Development)
JRE: Java Runtime Environment (Java execution environment)

JDK contains JRE.

JDK 1.4, JDK 1.5 (5.0), JDK 1.6 (6.0)

JDK 1.5 (5.0): Tiger, tiger
JDK 1.6 (6.0): Mustang, Mustang

1. Download JDK
2. Install JDK
3. Set environment variables (User variables or system variables) and point to the JDK installation directory.
Bin directory
4. Run cmd to open the command line window, and enter Java-version to display the Java version.
Information

Next, you can write JavaProgram.

You can directly use Windows notepad to write Java programs, or use editplus and ultraedit
Advanced text editing tools such as Java programming, you can also use professional IDE (Integrated
Development Environment.

In the first lesson, we use NotePad to implement a hello World Java program.

All JavaCodeAnd its suffixes all end with Java.

Java program execution process is divided into two steps:
1. Compile
2. Run

The class file is a bytecode file, and the program will eventually execute this bytecode file.

Compile command: Java test. Java
Execute the command: Java test (note that there is no. class after test)

Java is a cross-platform language. It does not actually execute binary code, but bytecode.

JVM (Java virtual machine, Java Virtual Machine)

Java is cross-platform, while JVM is not cross-platform (JVM is written in C language)

The reason why Java can achieve cross-platform is that JVM is not cross-platform.

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.