Difference between boxing and unboxing?
Ask by Hemant Patel
Updated 24 Sep 2020
The automatic conversion of primitive data types into it’s equivalent wrapper type is known as boxing and when wrapper type convert into its equivalent primitive data types is known as unboxing.
Example of Boxing in java:
Example of Unboxing in java: