public class b {
public static void main(String[] args) {
byte b = 1;
long l = 127;
b += l;
System.out.println(b);
}
}
I use this code, but I have a problem: I do not understand why it b=b+l;does not compile, but if I write b+=l;, then it compiles and runs.
Please explain why this is happening.
source
share