Java Learning Made Easy by Dheeraj Mehrotra - HTML preview
PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.
Download the book in PDF, ePub, Kindle for a complete version.
Assignment Operators


Operator/ Operation/ Format/ Meaning


= Assignment a=10
10 assigned to

the variable a


+= Add to the variable a+=5 a=a+5



-= Subtract from variable a-=5 a=a-5


*= Multiply to variable a*=5 a=a*5



/= Divide into a/=5 a=a/5


%= Modulus of a%=5 a=a%5





attention@computerscienceexpertise.com


















