1.

Which operator is used to invert all the digits in a binary representation of a number?(a) ~(b) (d) ^I got this question in final exam.I'd like to ask this question from Bitwise Operators in division Operators and Control Statements of Java

Answer»

The CORRECT CHOICE is (a) ~

BEST explanation: Unary not OPERATOR, ~, inverts all of the BITS of its operand in binary representation.



Discussion

No Comment Found

Related InterviewSolutions