Java Selection Control Statements

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

1/8

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards defining Java selection control statements, including if, if-else, if-else if, nested if, switch, break, fall-through, and default.

Last updated 3:43 PM on 9/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

9 Terms

1
New cards

Selection Control Statements

Statements in Java that allow a program to make decisions by evaluating a condition and executing a specific block of code depending on whether the condition is true or false.

2
New cards

if Statement

A selection control statement that executes a block of code only when the specified condition evaluates to true.

3
New cards

if-else Statement

A selection control statement that chooses between two alternatives by executing the if block if the condition is true, or the else block if the condition is false.

4
New cards

if-else if Statement

A selection control statement used to choose among multiple conditions, evaluating them sequentially from top to bottom until a true condition is found.

5
New cards

Nested if Statement

A selection structure where one if statement is placed inside another if or if-else statement so that a secondary condition is evaluated only after the primary condition is satisfied.

6
New cards

switch Statement

A selection control statement that selects an action or block of code to execute from multiple possible values based on an expression.

7
New cards

break Statement (in switch)

A statement used within a switch block to stop execution and prevent code from continuing into subsequent case blocks.

8
New cards

Fall-through

The behavior in a Java switch statement where execution continues automatically into subsequent cases when a break statement is omitted.

9
New cards

default Case

A block within a switch statement that executes when the evaluated expression does not match any of the specified case values.