5.1 Overview of Control Flow Statements


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

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

  • Iteration statements : while , do-while and for .

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



A Programmer[ap]s Guide to Java Certification
A Programmer[ap]s Guide to Java Certification
ISBN: 201596148
EAN: N/A
Year: 2003
Pages: 284

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net