quiz 1b Flashcards

1
Q

primitive type examples

A

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

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

reference type examples

A

String, Array, etc

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

primitive type

A

object is a copy of the data (primatives are immutable)

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

reference type

A

a reference to the object is stored (not a copy) (mutable except for strings)

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

stack

A

where primitive and method calls are stored

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

heap

A

where reference types are stored

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

==

A

compares data of primitives or the memory address of reference types

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

.equals()

A

compares data of reference types

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