 Back to Home »
 java , notes , school »
 ICSE 10th Standard Notes – Shift and Bitwise Operator in Java
Thursday, 6 February 2014
ICSE 10th Standard Notes – Shift and Bitwise Operator in Java
Shift Operators :
S.No.

Operator

Meaning

Example

1.

>>
 Shifts the bits of a to right by the distance of b. This is signed shifting. 
a>>b

2.

<<
 Shifts the bits of a to left by the distance of b. This is signed shifting. 
a<<b

3.

>>>
 Shifts the bits of a to right by the distance of b. This is unsigned shifting. 
a>>>b

Bitwise Operator :
The Bitwise operators in Java are as follows :
S.No.

Operator

Meaning

Example

1.

&
 And 
a & b

2.


 Or 
a  b

3.

^
 Not or Negation 
a ^ b

4.

~
 Bitwise Complement 
~a

ICSE 10th Standard Notes – Increment and Decrement Operators in Java
ICSE 10th Standard Notes – Arithmetic Operators and their precedence in Java
ICSE 10th Standard Notes – Relational Operators in Java
ICSE 10th Standard Notes – Assignment and Shorthand Operator in Java
ICSE 10th Standard Notes – Some Operators in Java
ICSE 10th Standard Notes – Expressions in Java
ICSE 10th Standard Notes – Boolean Expressions in Java
ICSE 10th Standard Notes – Variables in Java
ICSE 10th Standard Notes – Escape Sequences in Java
ICSE 10th Standard Notes – Statements in Java