O'Reilly logo

A Programmer’s Guide to Java® SE 8 Oracle Certified Associate (OCA) by Rolf W Rasmussen, Khalid A Mughal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6. Control Flow

Image
Image

6.1 Overview of Control Flow Statements

Control flow statements govern the flow of control in a program during execution, meaning the order in which statements are executed in a running program. There are three main categories of control flow statements:

Selection statements: if, if-else, and switch.

Iteration statements: while, do-while, basic for, and enhanced for.

Transfer statements: break, continue, return, try-catch-finally, throw, and assert.

Only the basic form of the try-catch-finally construct is covered here, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required