Unit 5

studied byStudied by 12 people
5.0(1)
Get a hint
Hint

IndexOutOfBoundsException

1 / 32

flashcard set

Earn XP

Description and Tags

33 Terms

1

IndexOutOfBoundsException

________- A run- time exception that occurs when the index used is outside the bounds of the array, either too small (less than zero) or too large (greater than or equal to the length of the array)

New cards
2

Elements

________- What the items stored in an array are called.

New cards
3

Length

________)- (A string method that returns an integer that is the total number of characters in the string.

New cards
4

Immutability

________- This term is the characteristic of Strings, and the size of arrays, that prevents those data structures from changing.

New cards
5

initializer list

A(n) ________- Creating an array with specific initial values.

New cards
6

Index

________- An integer value used to specify the position of an array element or String character.

New cards
7

Concatenation

________- This term defines the process of combining Strings with other Strings or other data types.

New cards
8

Pseudocode

________- Literally means "false code.

New cards
9

length of an array

The ________ is accessed using the length property.

New cards
10

False

The "default value "for the array boolean[] arr = new boolean [75];

New cards
11

Method

________- a collection of statements that are grouped together to perform an operation.

New cards
12

length of a String

The ________ is accessed via a method.

New cards
13

Iteration

Another word for repetition

New cards
14

Accumulation

To collect or gather; useful technique in loops

New cards
15

Nested loop

A loop that will run to completion for each iteration of the outer loop

New cards
16

sentinel loop

A loop that uses a value or dummy, to indicate the end of data entry

New cards
17

pseudocode

Literally means "false code"

New cards
18

Index

An integer value used to specify the position of an array element or String character

New cards
19

array

An ordered collection of similar items

New cards
20

elements

What the items stored in an array are called

New cards
21

an initializer list

Creating an array with specific initial values

New cards
22

immutability

This term is the characteristic of Strings, and the size of arrays, that prevents those data structures from changing

New cards
23

substring

A string method that returns a subset of a string at the index parameter

New cards
24

String

This data type can contain any character and have any length

New cards
25

IndexOutOfBoundsException

A run-time exception that occurs when the index used is outside the bounds of the array, either too small (less than zero) or too large (greater than or equal to the length of the array)

New cards
26

run-time error

This kind of error occurs while you are executing the program

New cards
27

compile error

This error occurs when you are validating the syntax of the program

New cards
28

concatenation

This term defines the process of combining Strings with other Strings or other data types

New cards
29

method

a collection of statements that are grouped together to perform an operation

New cards
30

True

The parentheses at the end indicate it is a method

New cards
31

0

The "default value" for the array int[] arr = new int[100];

New cards
32

0.0

The default value for the array double[] arr = new double[50];

New cards
33

false

The "default value" for the array boolean[] arr = new boolean[75];

New cards

Explore top notes

note Note
studied byStudied by 38999 people
... ago
4.9(89)
note Note
studied byStudied by 13 people
... ago
5.0(1)
note Note
studied byStudied by 3 people
... ago
5.0(1)
note Note
studied byStudied by 34 people
... ago
4.0(1)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 19 people
... ago
5.0(1)
note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 12 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (108)
studied byStudied by 13 people
... ago
5.0(1)
flashcards Flashcard (50)
studied byStudied by 52 people
... ago
5.0(2)
flashcards Flashcard (24)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (35)
studied byStudied by 168 people
... ago
5.0(1)
flashcards Flashcard (39)
studied byStudied by 17 people
... ago
5.0(1)
flashcards Flashcard (44)
studied byStudied by 39 people
... ago
5.0(1)
flashcards Flashcard (50)
studied byStudied by 15 people
... ago
5.0(2)
flashcards Flashcard (72)
studied byStudied by 23 people
... ago
5.0(1)
robot