Is this really widening vs autoboxing?
In the first case, you have a widening conversion happening. This can be see when runinng the “javap” utility program (included w/ the JDK), on the compiled class: public static void main(java.lang.String[]); Code: 0: iconst_ 5 1: istore_ 1 2: iload_ 1 3: i2l 4: invokestatic #6; //Method hello:(J)V 7: return } Clearly, you see … Read more