Advertisements
Advertisements
Question
Automatic conversion of primitive data into an object of wrapper class is called ______.
Options
Autoboxing
Explicit conversion
Shifting
None
MCQ
Fill in the Blanks
Solution
Automatic conversion of primitive data into an object of wrapper class is called autoboxing.
Explanation:
Autoboxing automatically converts a primitive data type into its equivalent wrapper class in Java. In this case, it refers to the automatic conversion of a primitive int to an Integer object.
shaalaa.com
Is there an error in this question or solution?