Strings and Arrays Flashcards
1
Q
Variables
A
- reserved memory space used to store values
- only allowed to occupy a fixed amount of memory space (in Java an int is allowed 4 bytes or 32 bits)
- every byte of memory has an address which is where the computer knows to look for a particular value
2
Q
Array
A
- is simply a series of reserved memory spaces for a fixed number of variables.
- values are physically located next to each other in memory
3
Q
Strings
A
- a series of alphanumeric characters
- char variables are 2 bytes each