Types 01 Flashcards

1
Q

What is the difference between a primitive and reference type?

A

Primitive types must always have a value and cannot be null.

Reference types are built on classes.

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

• What are the 8 primitive data types?

A
boolean
byte
short
char
int
long
float
double
How well did you know this?
1
Not at all
2
3
4
5
Perfectly