A summary of getting started with Java programming

Source: Internet
Author: User

A summary of getting started with Java programming

Java Development history

The predecessor of 1.oak:java, appeared in 1991

2. A new language based on C + + development, mainly used for embedded development

3. Then a hot Java browser is generated

Portability/cross-platform of Java

    1. Java source program *.java build *.class file by compiler
    2. *.class files can be run on the JVM of any system
    3. Different computer operating systems can install different JVM for XX
    4. Compile once, run anywhere

JDK (Java Development Kit)

JDK includes JPE (Java Runtime Environment) application (compiler) Java API common jar package

Where JPE includes the JVM (Java Virtual machine)

Java Program execution Process

. Java source files (compiled by Javac). Class (via Java) interpreting execution

Setting environment variables

Path: Set up the system, copy the JDK installation path to the front and add ";"

Note: The class followed by the first character must be capitalized and the file name is the same as the class name

To write Java program steps with MyEclipse

1. Create a Java project

2. Create a Java source program

3. Writing the *.class file

4. Running Java programs

Main four elements

1.public

2.static

3.void

4. (string[] args)

A summary of getting started with Java programming

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.