Showing posts with label flow of control. Show all posts
Showing posts with label flow of control. Show all posts

Saturday, 27 August 2016

Java Flow of control

Flow of control:
  • Flow of control means, the order in which statements are executed in a program.
  • The statements in a program will be executed in different ways based on requirement.
  • This type of flow of statements execution is called Flow of Control.

1. Sequential  statements
  • Statements ll executes top to bottom, means one by one.
2. Conditional Statements
  • Based on condition statements ll execute.
3. Looping Statements
  • Based on condition statements ll executes repeatedly and randomly.
Decision making statements :
  1. if
  2. if else
  3. if else if (nested if else)
  4. switch
Looping statements:
  1. while
  2. do while
  3. for
Other statements :

  1. break
  2. continue
  3. return

Thanks for your time.
Nireekshan
Read More