Integer a = 1;
Integer b = 2;
Long c = 3L;
/ / c = a compiler error will result in the error that int cannot be converted to long
System.out.println (compiled normally, resulting in true
Why?
I know that when int and long add up, they both turn into long,. Does that have anything to do with this?
for System.out.println (centering = (aquib))
will first unpack an and b into int, and then add them. The final result should be that an int,c is a long,. First of all, they are of different types, and the addresses of IntegerCache and LongCache must be different.
also, for "in-depth understanding of JVM", what does it mean that the "wrapper class" = = "the wrapper class"s" = = "operation will not automatically unpack without an arithmetic operation"