Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which operator is used to invert all the digits in binary representation of a number?
  2. A.
    ~
    B.
    >>>
    C.
    ^

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Unary not operator, ~, inverts all of the bits of its operand in binary representation.


Be The First To Comment