One, Java code comment
A single line of comments (//..... ...). ....... )
Multiline Comment (/*...................*/)
Document Comments (/**..............................*/
Single-line comment shortcut key ctrl+/
Second, operator
Unary operators
Binary operators
Ternary operators
Arithmetic operators
logical operators
Bitwise operators
Other operators
Arithmetic operators: + 、-、 *,/,% (take more)
Concatenation operator: + (String type)
Conversion operators
Gaga and decrement operators: + + 、--
Logical operator:! , &&, | |, = =, <, >, etc.
Trinocular operator: Code 1? Code Listing 2: Code 3
Displacement operator
Expression: A meaningful code consisting of at least one operand and at least one operator.
Characteristics of expressions: each expression has a return type
Each expression can be operated with other expressions as long as the type meets the requirements.
Precedence of operators:
Common scenarios for expression of multiple operators
1. Operation from left to right
2, the assignment of the expression, always in the last step
3, if there is a function call, the first function call, if the function call is a type conversion, then perform type conversion
4. Mathematical Operation rules
Java Basics, etc.