Tag: Represents the Java relational operator expression conversion numeric operator coercion type conversion arithmetic operator character
Variable naming rules
Variable name: consists of numbers, characters, underscores, dollar signs.
But you cannot start with a number.
Assignment operations
Variable name = expression;
Arithmetic operators
+ - * / %
+ + self-tuning
--Self-reduction
Type conversions
Automatic type conversion Large type = small type;
Coercion type conversion small type = (small type) large type;
Note overflow may occur when casting type conversions.
Relational operators
> (greater than),< (less than)
= = (equals)! = (not equal to)
>= (greater than or equal) <= (less than or equal)
Note: = = = = Equals, = indicates assignment;
Boolean type
Only a value of true and false two;
Operator Operation Precedence
() > Arithmetic operators > Relational operators > Logical operators > Assignment operators;
丨 (OR) && (with)! (non)
Java Relational operators