Study Flashcards

1
Q

Variable

A

Placeholder for a value that behaves as the value it contains.

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

Data Types

A

data type size primitive value
boolean 1 bit primitive true or false
byte 1 byte primitive -128 to 127
short 2 bytes primitive -32,768 to 32,767
int 4 bytes primitive -2 billion to 2 billion
long 8 bytes primitive -9 quintillion to quintil

float 4 bytes primitive up to 6-7 digits decimal
double 8 bytes primitive up to 15 digits decimal

char 2 bytes primitive single character/letter
String varies reference sequence of characters

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