Exam 1 Review Flashcards

1
Q

Pass by Value

A

local copy is made

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

Pass by Reference

A

Any change made to a parameter is kept

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

Mutable class

A

objects can be changed after construction

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

Immutable class

A

Once an object is constructed, the prior instance variables CANNOT be changed

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

example of immutable class

A

calendarDate()

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

Which has parenthesis at the end? Object or Class

A

Class

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

Primitive data type

A

Pass by value
ex. integral, boolean, floating point

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

Reference data type

A

Pass by reference
ex. Array, interface, class

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

Reference variables are stored in…

A

Heap area

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

Overloading

A

Two methods of the same name but one has specific parameters

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

When to use the .this operator

A

within an instance method or constructor

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