CS102 - Java Programming: Arrays

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

These flashcards cover key vocabulary related to arrays in Java programming as discussed in the CS102 lecture notes.

10 Terms

1
New cards

Array

An ordered list of values, where each value can be accessed using an index.

2
New cards

ArrayList

A class in the Java API that uses an array internally to manage a list of objects.

3
New cards

Index

The numeric position of an element in an array, starting from zero.

4
New cards

Bounds Checking

A process that ensures an array index does not exceed its defined limits.

5
New cards

ArrayIndexOutOfBoundsException

An exception thrown when an invalid index is accessed in an array.

6
New cards

Element Type

The data type of values that the array can hold, such as primitive types or Object references.

7
New cards

Declaring an Array

The process of creating an array by specifying its type and size, e.g. int[] scores = new int[10].

8
New cards

Initializer List

A comma-separated list of values enclosed in braces used to instantiate an array.

9
New cards

For-each Loop

A special type of loop used to iterate through all elements of an array.

10
New cards

Length of Array

Public constant that stores the number of elements in an array and can be accessed using arrayName.length.