English

Each primitive data type belongs to a specific ______. - Computer Applications

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:

  1. int is wrapped by Integer
  2. char is wrapped by Character
  3. double is wrapped by Double 
shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Library Classes - EXERCISES [Page 177]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 2 Library Classes
EXERCISES | Q I. 2. | Page 177
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×