Ch. 9 Flashcards

1
Q

Object

A

A collection of related data that comes with a set of methods that operate on the data

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

Primitive

A

A data type that stores a single value and provides no methods

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

Immutable

A

An object that, once created, cannot be changed. Strings are immutable by design

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

Wrapper class

A

Classes in java.lang that provide classes and methods for dealing with primitive types

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

Parse

A

To read a String and interpret or translate it

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

Empty Array

A

An array with no elements and a length of 0

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

Design Process

A

A process for determining what methods a class or program should have

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

Encapsulate

A

To wrap data inside of an object, or to wrap statements inside of a method

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

Generalize

A

To replace something unnecessarily specific (like a constant) with something appropriately general (like a variable or parameter)

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