223k views
4 votes
Explain the difference between the = symbol in Java and in mathematics.

User Gebi
by
4.7k points

1 Answer

1 vote

Answer:

In maths the '=' sign tells us that the two integers or variables on either side are the same, wheras in Java the '=' sign means that you are assigning the variable on the left hand side it's value which will be on the right

User Andrew Russell
by
5.3k points