Chapter 6 - Arrays Flashcards

0
Q

A value that denotes the location of an object in memory. In Java, a variable whose type is a class contains a reference to an object of that class.

A

Reference (Object reference)

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

A collection of values of the same type stored in contiguous memory locations, each of which can be accessed by an integer index.

A

Array

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

Trying to access an array element that is outside the legal range.

A

bounds error

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

An array that is not filled to capacity, together with a companion variable that indicates the number of elements actually stored.

A

Partially filled array

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

A linear … inspects elements in sequence until a match is found.

A

Linear search

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

A fast algorithm for finding a value in a sorted array. It narrows the search down to half of the array in every step.

A

Binary search

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

A Java class that implements a dynamically-growable array of objects.

A

Array list

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

A parameter in a generic class or method that can be replaced with an actual type.

A

Type parameter

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

A class with one or more type parameters.

A

Generic class

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