Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. On applying Left shift operator, <<, on an integer bits are lost one they are shifted past which position bit?
  2. A.
    1
    B.
    32
    C.
    33
    D.
    31

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    The left shift operator shifts all of the bite 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.


Be The First To Comment