Section 2

Controlling Flow

Switch statements vs expressions, pattern matching, sealed interfaces, loops — 3 lessons

📺 Watch on YouTube

Subscribe for new OCP tutorial videos

Lesson 2.1

Switch Statement vs Switch Expression

Lesson 2.2

Pattern Matching, Sealed Interfaces & Records — Switch & Guards

Lesson 2.3

Loops — for, while, do-while, for-each

← Previous Section 1: Handling Values All Topics