Flow Control in Java

Overview

Flow Control describes the order in which the statements will be executed at runtime. There are three types of Flow Control statements that controls the flow of execution.
  • Selection Statements
    • If-else Statements
    • Switch Statements
  • Iterative Statements
    • while loop
    • do-while loop
    • for loop
    • for-each loop
  • Transfer Statements
    • break
    • continue
    • return
    • try-catch-finally
    • assert

Reference



Comments

Popular posts from this blog

OOPS Concept in Java