KnowledgeBoat Logo
|

Computer Applications

What is Autoboxing in Java? Give an example.

Java Library Classes

16 Likes

Answer

The automatic conversion of primitive data type into an object of its equivalent wrapper class is known as Autoboxing. For example, the below statement shows the conversion of an int to an Integer.

Integer a = 20;

Answered By

6 Likes


Related Questions