Control Statement in Java

Control Statement


  • The control statement are used to control the flow of execution of the program
  • Types of control statements              
  1. Selection
  2. Repetition
  3. Branching
  • Selection Statements
                               if-then, if-then-else and switch
  • Repetition Statements
                              while, do-while and for
  • Branching statements
                              break, continue and return


Comments

Popular posts from this blog

Constant in Java

Java History, Features and Application types