Saturday, 27 August 2016

Java Statements

9. Control Statements

9.1 Statements
  • Keywords in control flow: if, else, do, while, for, switch, case, default, break, continue
Sequential Statements : 
Every Java program may contain:
  • Methods, constructors and blocks, these are having group of statements.
  • Statements might be operations or variable definitions etc.
  • Basically, statements will execute in an sequential order to perform actions and gives the output.
Control Statements : 
  • If methods, constructors and blocks contains control statements then the execution flow of control will be,
    • Repetitively (loop).
    • Conditional check.


Thanks for your time.
- Nireekshan