GROOVY Questions and Answers

Explain what are Bitwise Operators in Groovy?

Bitwise operators can be implemented on a BYTE or an INT and return and INT. Bitwise operators offer 4 bitwise operators

  • &: bitwise “and”
  • I : bitwise “or”
  • A : bitwise “xor”
  • ~ : bitwise negation