sum - java "=+" compiles but it does not affect any variable -


i wanted increment integer adding 1 , wrote "=+" instead of "+=" . , saw compiles not . or ?

a=3 b=5 a=+b  print >>> 5 

what reason ?

since =+ not operator (but += is).

so a=+b equals "a = +b" , b = +b a = b in end.

may looking a += b equals a = + b


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -