151k views
5 votes
Which class is not a type-wrapper class?

a. Character
b. Int
c. Double
d. Byte

User IAviator
by
8.1k points

1 Answer

7 votes

Final answer:

The class that is not a type-wrapper class is Int.

Step-by-step explanation:

The class that is not a type-wrapper class is Int.

Type-wrapper classes in Java are used to encapsulate and provide object representations of primitive data types. They provide utility methods for converting between primitive types and their corresponding wrapper classes. Examples of type-wrapper classes include

Character,

Double, and Byte.

  • Character: Represents a character value, such as 'a' or 'A'.
  • Double: Represents a double-precision floating-point value, such as 3.14.
  • Byte: Represents a byte value, which is an 8-bit signed integer.

On the other hand, Int is not a type-wrapper class in Java. It is a primitive data type that represents integer values.

User Bajo
by
8.0k points