Resource integration: First day of Java Foundation Course

Source: Internet
Author: User

Installation configuration for JDK

(1) Java_home E:\Java\jdk1.7.0

(2) path%java_home%\bin;

CMD Operation compilation Helloworld.java

A simple command

(1) Jump command CD folder name

(2) Compile Java command: Javac class name. Java[helloworld.java]

(3) Parsing Java file: Java class name [HelloWorld]

Basic content of Java

Identifier

The naming rules for Java can be underlined by [_], the letter [a-z| A-z], the dollar sign [$], the number [0-9], but the first letter in addition to the number.

Key words

This

Super

Final

Abstract

Continue

Break

Throw

Throws

Extends

Implements

Basic data types for Java

Operator

Expressions and statements

Branch

Cycle

Method

Scope of the variable

Recursive invocation

Overall composition rules

Just a public class, and that class is the class name of the Java file

Strictly case-sensitive, keywords are all lowercase, identifiers cannot use keywords

Statement End payment: semicolon [;]

The main program entry allows only one, and can only be the main () method

Note Three ways-

Single-line Comment

/* Multiline Comment */

/** Document Comments */

Resource integration: First day of Java Foundation Course

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.