Java : Assignment Operators
Java : Assignment Operators
Assignment Operator also called as op= operators and it’s use to reduce the expression size.
Following is the list of complete op= operators
+= -= *= /= %= <>= >>>= &= |= ^=
For Example : count +=2 has the will return the same result as expression statement : count = count + 2 ;
public class TestClass { public static void main(String[] arg) { int count1 = 5 , count2 = 5; //Calculation with…
View On WordPress













