WRAPPER CLASSES AND PRIMITIVE TYPES

preview_player
Показать описание
A look at wrapper classes in Java and when / why we use them. A great overview for those new to the topic.

Java defines eight primitive data types - all other variables in java are object reference types.

Primitive Wrapper
byte Byte
short Short
int Integer
long Long
float Float
double Double
boolean Boolean
char Character

- Autoboxing is the automatic conversion of primitive types to their corresponding object wrapper classes
- Auto-unboxing is the automatic conversion of object wrapper types into their corresponding primitive types.

** Like and subscribe! **
Рекомендации по теме