English

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?
Chapter 5: Primitive Values, Wrapper Classes, Types and Casting - EXERCISE [Page 112]

APPEARS IN

Dheeraj Mehrotra Computer Science [English] Class 12
Chapter 5 Primitive Values, Wrapper Classes, Types and Casting
EXERCISE | Q 5. | Page 112
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×