Java Tutorial


OOPS concept


Collection

Java - Loop

Loops are used to iterate some part of program again and again till loop condition not met.

Advantages

  • Reduce code
  • Easy to maintain


  • Different types of loops that is supported by java is:
  • for Loop
  • while Loop
  • do while Loop

  • Control statements

    Control statements in loop are used to change the normal sequence.

    Following are the control statements supported by java:

  • break
  • continue
  • Read about them.

    Advertisment

    Share


    Advertisement