What is Autoboxing and Unboxing in Java?

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

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


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.