Computer Science
Explain Assignment operator with an example.
Values & Data Types Java
5 Likes
Answer
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.
Example:
int a = 10;
int b = a * 4;
Answered By
3 Likes