Autoboxing/unboxing change the interplay between primitive types and objects by providing automatic wrapping and unwrapping of primitive values. This occurs behind the scenes. Although easy to use, and a great new feature in my opinion, it also introduces potential side effects
Does this mean you don't have to use classes like Integer to convert a primitive int to a long through the method Integer.longValue()? How would you do this with
Java v5.0?