- 算术运算符 +,-,*,/,%,++,--
- 幅值运算符=
- 关系运算符 >,<,>=,<=,==,!=
- 逻辑运算符&&,||,!
- 位运算符&,|,^,~,>>,<<,>>>
- 条件运算符? :
- 拓展赋值运算符+=,-=,*=,/=
```java
//短路运算
int c = 5;
boolean d = (c<4)&&(c++<4);
System.out.println(d);//false
System.out.println(c);//5
```
```java
int a = 10;
int b = 20;
a+=b;
a-=b;
System.out.println(a);
//字符串连接符 + ,string
System.out.println(""+a+b);//1020
System.out.println(a+b+"");//30
```
```java
int score = 50;
String type = score <60? "不及格": "及格";
```
原文:https://www.cnblogs.com/leon223/p/13405633.html