What is Autoboxing and Unboxing in Java?

Autoboxing
Converting a primitive value into an object of the corresponding wrapper class is called autoboxing.

Unboxing
Converting an object of a wrapper class to its corresponding primitive value is called unboxing.

Example:

Author: Mahesh

Technical Lead with 10 plus years of experience in developing web applications using Java/J2EE and web technologies. Strong in design and integration problem solving skills. Ability to learn, unlearn and relearn with strong written and verbal communications.