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.
Shorthand Notation




Shorthand Operation Equivalence Operation



sum +=10; sum = sum + 10;

sum -=10; sum = sum- 10;

sum /=10; sum = sum / 10;

sum *=10; sum = sum * 10;

sum %=10; sum = sum % 10;


(Similarly a variable within an expression on the right can also be used as :)



sum +=total; sum = sum + total;












attention@computerscienceexpertise.com
















