2009-07-24

java operator

What are the Java Operators?

Java Operator Operator Description
[ ] Array index
() Method call
. Member access
++ Prefix or postfix increment
-- Prefix or postfix decrement
+ - Unary plus, minus
~ Bitwise NOT
! Boolean (logical) NOT
(type) Type cast
new Object creation
* / % Multiplication, division, remainder
+ - Addition, subtraction
+ String concatenation
<< Signed bit shift left to right
>> Signed bit shift right to left
>>> Unsigned bit shift right to left
< <= Less than, less than or equal to
> >= Greater than, greater than or equal to
instanceof Reference test
== Equal to
!= Not equal to
& Bitwise AND
& Boolean (logical) AND
^ Bitwise XOR
^ Boolean (logical) XOR
| Bitwise OR
| Boolean (logical) OR
&& Boolean (logical) AND
|| Boolean (logical) OR
? : Conditional
= Assignment
*= /= += -= %=
<<= >>= >>>=
&= ^= |=
Combinated assignment
(operation and ass

0 留言: