Java Control Statements - Conditional Statements

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

1/16

flashcard set

Earn XP

Description and Tags

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.

Last updated 4:40 AM on 6/25/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

17 Terms

1
New cards

Control Statements

Statements that allow a developer to control the execution order of a program, subdivided into conditional, looping, and jumping statements.

2
New cards

Sequential Manner

The standard execution of Java statements from top to bottom, one after the other.

3
New cards

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.

4
New cards

Looping (Iterative) Statements

Control statements used to repeat the same set of statements multiple times based on a specific condition.

5
New cards

Jumping Statements

Control statements used to transfer the flow of execution, such as the break command.

6
New cards

Boolean Expression

An expression used within conditional statements that must always return a value of true or false.

7
New cards

If Condition

A statement where if the specified condition is true, the statements inside the block execute; otherwise, they are ignored.

8
New cards

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.

9
New cards

Relational Operator

Operators such as greater than or equal to (>=>=) or comparison (====) used to create conditions that return Boolean values.

10
New cards

Nested If-Else

A control structure where one if-else statement is placed inside another if-else statement.

11
New cards

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.

12
New cards

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.

13
New cards

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.

14
New cards

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.

15
New cards

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.

16
New cards

Logical Operators

Operators such as the AND operator (&&) used to combine multiple expressions within a single if condition.

17
New cards

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.