Title: Boxing, and Unboxing
Course: CPS 189: Java Certification - Review, Practice & Prepare (Development) > Section: (OLDstyle) Learning Modules

Boxing, and unboxing

Boxing converts a primitive type value to an object of its corresponding wrapper class.

Unboxing converts an object of a wrapper class to its corresponding primitive type value.

Listed below are the primitive data types and their corresponding wrapper classes:

booleanBoolean

byteByte

charCharacter

floatFloat

intInteger

longLong

shortShort

doubleDouble

For more information, see:

- Autoboxing and Unboxing
- Level 1 Study Materials: Unit 2
- Level 1 Study Materials: Unit 10