3: Chapter 10 Flashcards

1
Q

Generic class

A

A class such as ArrayList that takes a type parameter to indicate what kind of values it will use.

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

Wrapper class

A

A class that “wraps” (stores) primitive data as an object.

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

Boxing

A

An automatic conversion from primitive data to a wrapped object of the appropriate type (e.g. an int boxed to form an Integer).

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

Unboxing

A

An automatic conversion from a wrapped object to its corresponding primitive data (e.g. an Integer unboxed to yield an int).

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

Comparison function

A

A well-defined procedure for deciding, given a pair of values, the relative order of the two values (less than, equal to, or greater than).

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

Natural ordering

A

The order imposed on a type by its comparison function.

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

ArrayList

A

A resizable implementation of the List interface.

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

Map

A

A map is a collection of key-value pairs.

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