What is a wrapper class in Java.
Advertisements
Question
What is a wrapper class in Java.
Short Answer
Advertisements
Solution
A Wrapper Class in Java is a class that converts a primitive data type into an object. Each primitive data type has a corresponding wrapper class in the java.lang package. Wrapper classes allow primitive values to be treated as objects and provide methods for data conversion and manipulation.
shaalaa.com
Is there an error in this question or solution?
