Java examples for Language Basics:Primitive Types
Every primitive type has a corresponding class defined in the Java API class library.
This class is called a wrapper class.
Wrapper Classes for the Primitive Types
Primitive Type | Wrapper Class |
---|---|
int | Integer |
short | Short |
long | Long |
byte | Byte |
float | Float |
double | Double |
char | Character |
Boolean | Boolean |