Javase courses
A: Programming Specification
Name anywhere needs to see to know the name of Italy;
Code proper indentation
The process of writing the pair programming
The code is reasonable comments
Two: keywords and identifiers
One
1 : Keyword is to be java character gives special meaning
2 : features all lowercase
- Note: GOTO and const as a reserved word
- As notepod Senior keywords such as Notepad will have a special color-coded
two:
Identifier ;
- Definition: it is a class variable interface to obtain the name of the character sequence method
- Composition rules: capitalization is not recommended Chinese
- Notes can not start with the numbers can not be the key note case
- Common naming convention: Big Hump small hump constant in all caps
II: Notes :
- Program for word of explanation
- Category single-line comments // Multiline comments / ** /
Three . Constants and Variables
- Constant defined the same amount in the program run
- Variables defined amount in the program run can be changed
- The use of variable stock for quantity
- Focus variable variable type variable name variable value variable scope
- Note the use of variables must first define a variable first assignment after use to be in the scope of
IV. Data Types
- The definition of java is a strongly typed language data are provided for each data type
- Categories basic data type four eight kinds of reference data type classes interfaces array
- Basic data types Integer byte short int long float float double
- Char char Boolean boolean
Five: data type conversion
- boolean does not participate in the conversion
- The default conversion from an early age greatly
- Cast descending different data types or small to large data transfer may occur loss of accuracy and loss of data,
Six . Escape character
\ ': Represents a single quote
\\: Represents a backslash character "\"
\ ": Represents a double quote character
\ b: backspace , is to move the cursor to the previous character of the current character is not
It deletes the current character.