Single Choice
Easy
QAutomatic conversion of primitive data into an object of wrapper class is called:
ID: #22231
switch case in Java
91 views
Question Info
#22231Q ID
EasyDifficulty
switch case in JavaTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Automatic conversion of primitive data into an object of a wrapper class is called autoboxing.
Explanation:
- Autoboxing is a feature in Java that allows automatic conversion between primitive types (such as
int,float,double, etc.) and their corresponding wrapper classes (such asInteger,Float,Double, etc.). - For example, Java automatically converts an
intto anIntegerwhen it is assigned to anIntegerobject or used in a context where anIntegeris expected.
Correct Answer:
a) autoboxing
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic