Primitive Data Types Flashcards

1
Q

byte

A

1 byte, Stores whole numbers from -128 to 127

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

short

A

2 bytes,Stores whole numbers from -32,768 to 32,767

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

int

A

4 bytes, Stores whole numbers from -2,147,483,648 to 2,147,483,647

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

long

A

8 bytes,Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

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

float

A

4 bytes,Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits

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

double

A

8 bytes,Stores fractional numbers. Sufficient for storing 15 decimal digits

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

boolean

A

1 bit,Stores true or false values

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

char

A

2 bytes,Stores a single character/letter or ASCII values

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