What is the use of the '&=' operator in Scala –

44. What is the use of the "&=" operator in Scala -

  1. Bitwise operator
  2. Arithmetic operator
  3. Bitwise Assignment operator
  4. None of these

Answer: C) Bitwise Assignment operator

Explanation:

The bitwise AND assignment operator (&=) uses the binary representation of both operands, does a bitwise AND operation on them and assigns the result to the variable.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.