Home » JAVA Programming » Basic Operators » Question
  1. Which operator is used to invert all the digits in binary representation of a number?
    1. <<<
    2. ^
    3. >>>
    4. ~
    5. None of these
Correct Option: D

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



Your comments will be displayed only after manual approval.