Home » JAVA Programming » Basic Operators » Question
  1. On applying Left shift operator, <<, on an integer bits are lost one they are shifted past which position bit?
    1. 32
    2. 31
    3. 33
    4. 1
    5. None of these
Correct Option: B

The left shift operator shifts all of the bits in a value to the left specified number of times. For each shift left, the high order bit is shifted out and lost, zero is brought in from right. When a left shift is applied to an integer operand, bits are lost once they are shifted past the bit position 31.



Your comments will be displayed only after manual approval.