๐Ÿ’ปap computer science a review

Wrapper class

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

A wrapper class in Java is a class that provides an object representation of a primitive data type. It allows the primitive data type to be used as an object and provides helpful methods to manipulate and interact with the data.

"Wrapper class" also found in:

Wrapper class Definition - AP Computer Science A Key Term | Fiveable