Java – = what’s the difference between = and =?
•
Java
=What's the difference between and?
Solution
i += 4;
i += 4;
means
i = i + 4; // increase i by 4.
and
i =+ 4;
amount to
i = +4; // assign 4 to i. the unary plus is effectively no-op.
(see http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls -15.15. 3 why is it one yuan
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码