Chapter 6 - Arrays Flashcards
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.
Reference (Object reference)
A collection of values of the same type stored in contiguous memory locations, each of which can be accessed by an integer index.
Array
Trying to access an array element that is outside the legal range.
bounds error
An array that is not filled to capacity, together with a companion variable that indicates the number of elements actually stored.
Partially filled array
A linear … inspects elements in sequence until a match is found.
Linear search
A fast algorithm for finding a value in a sorted array. It narrows the search down to half of the array in every step.
Binary search
A Java class that implements a dynamically-growable array of objects.
Array list
A parameter in a generic class or method that can be replaced with an actual type.
Type parameter
A class with one or more type parameters.
Generic class