Chapter One: first knowledge of Java

Source: Internet
Author: User

Chapter One: The first knowledge of Java What is a program:

A program is a series of ordered collections written to allow a computer to perform certain operations or solve a problem

Java includes programming languages and related technologies:

2 Javase:java Standard Edition

2 Javaee:java Enterprise Edition

2 Javame:java Micro Edition

A three-step walk to developing a Java application:
    1. Writing the source program
    2. Compiling the program
    3. Run the program.

source program to. Java is the extension, and the compiled file is extended with a. class extension.

Use the Java command to compile the. java file. Use the Java command to run the. class file that is generated after compilation.

Java commands

2 Javac file name (must be the same as file name). Java Compilation

2 Java file name run

Comments are divided into

2 Single-line comment://

2 Multiline Comments:/* */

2 text Comment:/** */

MyEclipse
    1. Create a Java Project
    2. Creating and writing Java source programs
    3. Compiling Java source Programs

Running Java programs

Chapter One: first knowledge of Java

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.