In Java, there are three assignment operators.Assignment operator always follows Right To Left Associativity.
- Simple Assignment
- Chained Assignment
- Compound Assignment
We can perform simple assignment at the time of declaration.
example:-
int a=10;
2.Chained Assignment :-
We can't perform simple assignment at the time of declaration.
example:-
int a,b,c,d;
a=b=c=d=20;
System.out.println(a+"....."+b+"....." +c+"....."+d)
output is
