1 . Basic structure of Java program
2. Identifiers
(1) Meaning:
Identifiers can be simply understood as a name that identifies a sequence of valid numbers for a class name, variable name, method name, array name, and file name.
(2) Naming rules:
① is composed of letters, numbers, underscores, and dollar signs, the first character cannot be a digit;
② the letters in the Java language can make Any character in the Unicode character set, including the legal identifiers in the Latin alphabet, Chinese characters, Japanese, and many other languages;
③ identifiers cannot make Java keywords and reserved words;
④ identifiers are strictly case-sensitive in the Java language.
3. Key words
Keywords are words that have been given a particular meaning in the Java language and cannot be used as identifiers.
|
Int |
Public |
This |
Finally |
Boolean |
Abstract |
|
Continue |
Float |
Long |
Short |
Throw |
Throws |
|
Return |
Break |
For |
Static |
New |
Case |
|
If |
Double |
Defoult |
Byte |
Do |
Switch |
|
Strictp |
Package |
Super |
void |
Try |
Class |
|
Else |
Catch |
Implements |
Private |
Final |
Char |
|
Extends |
Volatile |
While |
Synchronized |
instanceof |
|
|
Proctecte |
Importd |
Transient |
Interface |
Dafaule |
|
Attached: Mind Map of this lesson
Java Syntax Basics (i) 19th,feb