java study notes (4) operator

java is divided into the following operator:

Arithmetic operators +、-、*、/、++、--、%
Relational Operators <、<=、>、>=、==、!=
Boolean operators &&、||、&、|、!
Bitwise Operators

&、|、~、^、>>、>>>、<<

&: Bitwise AND (AND) [Barbara true, true and false is false, (ie a fake false)]

|: Bitwise OR (OR) [false false false, the rest is true (that is, a really true)]

^: Bitwise exclusive [same as false, except for the true]

~: Bitwise not (NOT) the [true or false, false is true]

>>: right

>>>: right, left vacated bits padded with 0s

<<: Left

Class assignment operator =、+=、-=、*=、/=、%=
String concatenation operator +
Conditional operator ?
Other operators instanceof、new

 

 

 

 

Guess you like

Origin www.cnblogs.com/fqh123/p/12013482.html