I know type casting is done automatically in Java for lower precision primitive type to higher precision. For example in this code:
int i = 20;
int j = 40;
float k = i + j;
What actually happens internally? In the third statement, do the values of i and j individually get casted to float and then added together?
Or the addition is done first in int type and then the result of the addition is casted into float?