- boolean (true, false)
- char (8 bits)
- byte (8 bits)
- short (16 bits)
- int (32 bits)
- long (64 bits)
- float (32 bits)
- double (64 bits)
- Primitive variables are variables with primitive data types. They store data in the actual memory location of the variable is.
- Reference variables are variables that stores the address in the memory location. It points to another memory location of the actual data is.
No comments:
Post a Comment