Java is doing something here that I don't understand. If I have
int sum = 0;
long num = 1234;
Using the assignment operator += will work fine
sum += num % 10;
However, using simple assignment will cause a "Cannot convert long to int" error
sum = sum + num % 10;
Why is this ??