A
asit
In java
lets consider the following code
byte b = 0;
byte a =10;
b += a;
it shows no error.
But in the following code
byte b = 0;
byte a =10;
b = b+ a;
it shows possible loss of precision.
found : int
required : bye
Though both these code apparently do the some things, why it gives
error in 2nd case ???
lets consider the following code
byte b = 0;
byte a =10;
b += a;
it shows no error.
But in the following code
byte b = 0;
byte a =10;
b = b+ a;
it shows possible loss of precision.
found : int
required : bye
Though both these code apparently do the some things, why it gives
error in 2nd case ???