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