Computer Applications
What is a wrapper class? Name three wrapper classes in Java.
Java Library Classes
3 Likes
Answer
A wrapper class allows us to convert a primitive data type into an object type. Each of Java's eight primitive data types has a wrapper class dedicated to it. These are known as wrapper classes because they wrap the primitive data type into an object of that class.
The three wrapper classes are Integer, Float and Double.
Answered By
2 Likes