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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Strings

A
  • a series of alphanumeric characters

- char variables are 2 bytes each

How well did you know this?
1
Not at all
2
3
4
5
Perfectly