1/16
Vocabulary flashcards covering the basics of Java control statements with a focus on conditional structures including if, if-else, nested if-else, and switch cases.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Control Statements
Statements that allow a developer to control the execution order of a program, subdivided into conditional, looping, and jumping statements.
Sequential Manner
The standard execution of Java statements from top to bottom, one after the other.
Conditional Statements
A category of control statements used to execute specific group of statements based on certain conditions; Java supports four types: if, if-else, nested if-else, and switch case.
Looping (Iterative) Statements
Control statements used to repeat the same set of statements multiple times based on a specific condition.
Jumping Statements
Control statements used to transfer the flow of execution, such as the break command.
Boolean Expression
An expression used within conditional statements that must always return a value of true or false.
If Condition
A statement where if the specified condition is true, the statements inside the block execute; otherwise, they are ignored.
If-Else Condition
A conditional structure that executes the if block if the condition is true and the else block if the condition is false.
Relational Operator
Operators such as greater than or equal to (>=) or comparison (==) used to create conditions that return Boolean values.
Nested If-Else
A control structure where one if-else statement is placed inside another if-else statement.
If-Else Ladder
A series of multiple conditions using else-if blocks to verify different levels of conditions until a true one is found or the final else block executes.
Switch Case Statement
A conditional statement preferred for a large number of conditions because it reduces code volume and compares a variable against multiple values.
Case Keyword
A keyword used in a switch statement followed by a value and a colon to define a block of code to be executed if the variable matches that value.
Break Command
A command mandatory in every switch case to prevent the program from automatically executing the next consecutive case and to jump out of the switch block.
Default Block
The final block in a switch statement that executes only if none of the previous cases match the variable value, functioning similarly to an else block.
Logical Operators
Operators such as the AND operator (&&) used to combine multiple expressions within a single if condition.
Ternary Operator
An operator used to achieve conditional results in a single line of code, often used as an alternative to simple if-else conditions.