Java – Assignment operators

Home/Java - Tutorial/Java - Operators/Java – Assignment operators
Java – Assignment operators 2017-06-13T09:48:43+00:00

var = expression;

int x, y, z;

x = y = z = 50; // set x, y, and z to 50

EX.

?

Output :
<————Assignment Operator————->
x + y + z = 150

Prev Next