For example, I have this code :
int a = 2;
long b = 3;
a = a + b;//Error while compilation
a += b;//Normaly fineshes
What is the difference between the two instructions , because I saw such questions in list of interview questions?
For example, I have this code :
int a = 2;
long b = 3;
a = a + b;//Error while compilation
a += b;//Normaly fineshes
What is the difference between the two instructions , because I saw such questions in list of interview questions?