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]
2
Q
What are the 8 Primitive Data Types in Java?
A
byte, short, int, long, float, double, boolean, char
3
Q
How do you ‘Declare’ a variable?
A
Using a declaration pattern:
dataType storageName;
4
Q
What are ‘variables’ in Java?
A
Ans:
5
Q
How do you ‘initialize’ a variable?
A
Using initialization pattern:
storageName = value;
6
Q
What are Reference Data Types?
A
Ans: