Home »
MCQs »
Scala MCQs
What is the use of the '&=' operator in Scala –
44. What is the use of the "&=" operator in Scala -
- Bitwise operator
- Arithmetic operator
- Bitwise Assignment operator
- 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.