1/9
These flashcards cover key vocabulary related to arrays in Java programming as discussed in the CS102 lecture notes.
Array
An ordered list of values, where each value can be accessed using an index.
ArrayList
A class in the Java API that uses an array internally to manage a list of objects.
Index
The numeric position of an element in an array, starting from zero.
Bounds Checking
A process that ensures an array index does not exceed its defined limits.
ArrayIndexOutOfBoundsException
An exception thrown when an invalid index is accessed in an array.
Element Type
The data type of values that the array can hold, such as primitive types or Object references.
Declaring an Array
The process of creating an array by specifying its type and size, e.g. int[] scores = new int[10].
Initializer List
A comma-separated list of values enclosed in braces used to instantiate an array.
For-each Loop
A special type of loop used to iterate through all elements of an array.
Length of Array
Public constant that stores the number of elements in an array and can be accessed using arrayName.length.