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

Choose the Best Option

Click any option to instantly check if you're correct.

  • A autoboxing
  • B explicit conversion
  • C shifting
  • D none of these
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 as Integer, Float, Double, etc.).
  • For example, Java automatically converts an int to an Integer when it is assigned to an Integer object or used in a context where an Integer is expected.

Correct Answer:

a) autoboxing

Share This Question

Challenge a friend or share with your study group.