Multiple choice

What are wrapper classes?

Java is not purely OOP because of primitive type but then came the concept of wrapper class.

  1. Classes that allow primitive types to be accessed as objects

  2. Class that encapsulates the class

  3. Class that uses polymorphism

  4. Both 2 and 3

  5. None of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Using the concept of autoboxing and unboxing, we can use primitive type converted to objects and vice-versa.