Why is there no &&= operator in Java?

863 views Asked by At

Even for the binary and & there is a shorthand operator &=.

So, why did the developers decide against something like a &&= b which would do a logical and assignment?

It would do the same like for example the += operator (a += b) would do to a = a + b, shortening the expression.

0

There are 0 answers