On the stack: store references to basic types and objects On the
heap: the fragrant object itself, new
what comes out
basic type | Packaging |
---|---|
byte | Byte |
short | Short |
int | Integer |
long | Long |
float | Float |
double | Double |
char | Character |
boolean | Boolean |