Advertisements
Advertisements
Question
Each primitive data type belongs to a specific ______.
Options
Block
Object
Wrapper class
None
MCQ
Fill in the Blanks
Solution
Each primitive data type belongs to a specific wrapper class.
Explanation:
In Java, each primitive data type (for example, int, char, double) has a matching wrapper class that exposes primitive-type object methods. For example:
- int is wrapped by Integer
- char is wrapped by Character
- double is wrapped by Double
shaalaa.com
Is there an error in this question or solution?