Monday, May 14, 2018

Technical Tip #03 - Technical Tip of the day....by JavaExpertHelp – www.JavaByKiran.com


T3: Knowledge Tip Of The Day.........
Assignment Operators
Assignments operators in java are: =, +=, -=, *=, /=, %=
num2 = num1 would assign value of variable num1 to the variable.
n2+=n1 is equal to n2 = n2+n1
n2-=n1 is equal to n2 = n2-n1
n2*=n1 is equal to n2 = n2*n1
n2/=n1 is equal to n2 = n2/n1
n2%=n1 is equal to n2 = n2%n1

No comments:

Post a Comment