03-01 Java operator
•
Java
(1)算术运算符
/Difference between% and%:
++, -- use of operators;
Priority of operator:
+Usage of:
(2) Assignment operator
Assignment operator:
The extended assignment operator actually implies a cast:
(3)比较运算符
(4) Logical operator
&&What is the difference between and? Similarly, what is the difference between 𞓜 and |?
Bit operation
位运算符:&,~ 解释
^异或的特点:一个数据对另一个数据位异或两次,该数本身不变。
实现两个整数变量的交换:
Displacement operation
Ternary operation
Get the maximum value and judge whether the values are equal
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码