Vijay Kumari
What Types of Loops Does Java Support?
By Vijay Kumari in Java on Sep 17 2019
  • Rohit Gupta
    Sep, 2019 17

    Java Supports the following :

    1. for loop
      1. for(initialization condition; testing condition; increment/decrement)
      2. {
      3. statements(s)
      4. }
    2. for-each loop
      1. for (type var: array)
      2. {
      3. statements(s)
      4. }
    3. while loop
      1. while( condition)
      2. {
      3. Statements
      4. }
    4. do-while loop
      1. do
      2. {
      3. statement(s)
      4. }while

    for a detailed tutorial on Java Control and Loop statements please visit https://www.c-sharpcorner.com/article/java-loops-and-control-statements/

    • 1
  • Shashank Pathak
    Nov, 2019 3

    Hey User, Java Supports different types of Loop like-1:- While Loop. 2:- Do while Loop. 3:- For Loop. 4:- Foreach Loop.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS