1/8
Vocabulary flashcards defining Java selection control statements, including if, if-else, if-else if, nested if, switch, break, fall-through, and default.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
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.
if Statement
A selection control statement that executes a block of code only when the specified condition evaluates to true.
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.
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.
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.
switch Statement
A selection control statement that selects an action or block of code to execute from multiple possible values based on an expression.
break Statement (in switch)
A statement used within a switch block to stop execution and prevent code from continuing into subsequent case blocks.
Fall-through
The behavior in a Java switch statement where execution continues automatically into subsequent cases when a break statement is omitted.
default Case
A block within a switch statement that executes when the evaluated expression does not match any of the specified case values.