Programming - Operators - Discussion

You Are Here :: Home > JAVA > Operators - Discussion

 



Q.

The signed __________ operator shifts a bit (or bits) to the right by the distance specified in the right operand and fills the left most bit by the sign bit.                         


A. left shift ("<<") B. right shift (">>")
C. both a and b D. none

Answer: Option B
Explaination:

 


The signed right shift (">>") operator shifts a bit (or bits) to the right by the distance specified in the right operand and fills the left most bit by the sign bit.




Discussion

Your Comments Goes here...
NameDiscussion