| title |
description |
Primitive Data Type |
Basic data types that are built into Java |
|
| title |
description |
Primitive variables |
Variables that hold a single value of a primitive data type, such as an integer, float, or boolean. |
|
| title |
description |
Primitive Data Type Examples |
boolean, char, byte, short, int, long, float, and double. |
|
| title |
description |
boolean |
Logical value representing either true or false |
|
| title |
description |
char |
Single character representation |
|
| title |
description |
byte |
8-bit integer representation |
|
| title |
description |
short |
16-bit integer representation |
|
| title |
description |
int |
32-bit integer representation |
|
| title |
description |
long |
64-bit integer representation |
|
| title |
description |
float |
32-bit IEEE 754 floating-point number representation |
|
| title |
description |
double |
64-bit IEEE 754 floating-point number representation |
|