The Autoboxing and Unboxing was released with the Java 5.
During assignment, the automatic transformation of primitive type(int, float, double etc.) into their object equivalents or wrapper type(Integer, Float, Double,etc) is known as Autoboxing.
Integer intObject = 5; // autoboxing
During assignment or calling of constructor, the automatic transformation of wrapper types into their primitive equivalent is known as Unboxing.
Ex: int inative = 0; inative = new Integer(5); // auto-unboxing Autoboxing also works with comparison int a = 10; Integer b = 10; System.out.println(a==b); // true