Java OCA OCP Practice Question 192

Question

Which of the following is not a wrapper class?

  • A. Double
  • B. Integer
  • C. Long
  • D. String


D.

Note

String is a class, but it is not a wrapper class.

In order to be a wrapper class, the class must have a one-to-one mapping with a primitive.




PreviousNext

Related