Computer Science

Distinguish between Assignment and Expression

Values & Data Types Java

2 Likes

Answer

AssignmentExpression
Assignment is the process in which Assignment operator (=) is used to assign a literal, value of a variable, the result of any expression or the return value of a method to a variable.Expression is a set of variables, constants and arithmetical operators.
Example:
int a = 10;
int b = a * 4;
Example:
a++ + ++a
x * x + 4

Answered By

1 Like


Related Questions