-5

Any one please tell me, what is the exact usage of & operator in Java. I mean, is there any specific acenario to use of & operator in real time applications, insteasd of native code.

I know the Operators in Java, but I am asking about, any one ever used in your projects before ? I need about the scenario which have you seen.

Thank you.

1 Answers1

2

Its bit wise operator ,which can be applied to the integer types, long, int, short, char, and byte. & (bitwise and) Binary AND Operator copies a bit to the result if it exists in both operands means & evaluates both sides of the operation.

for more details please read about the bitwise operator.

Zia
  • 1,122
  • 11
  • 24