Data Types Flashcards

1
Q

What are Primitive Data Types?

A

Storage locations where the name of the location and the value being stored are the same.

[I Don’t like this answer]

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

What are the 8 Primitive Data Types in Java?

A

byte, short, int, long, float, double, boolean, char

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

How do you ‘Declare’ a variable?

A

Using a declaration pattern:

dataType storageName;

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

What are ‘variables’ in Java?

A

Ans:

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

How do you ‘initialize’ a variable?

A

Using initialization pattern:

storageName = value;

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

What are Reference Data Types?

A

Ans:

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