What is Autoboxing and Unboxing?

1 answers

Autoboxing is the automatic conversion made by the Java compiler between the primitive types and their corresponding object wrapper classes. For example, the compiler converts an int to an Integer, a double to a Double, and so on. If the conversion goes the other way, this operation is called unboxing.

shilpigupta22 shilpigupta22 [Author] 2 months ago votes 0