JAVA LOOPS : Loops means multiple time execution of same code written inside loop blocks. Now let's understand first FOR LOOP 1. FOR LOOP : FOR LOOP will have 3 things. Start index A terminator condition Increment flag. if loop start index is 1 and terminator condition is index should be less than 10 and start index incremented by 1 , then code inside loop brackets will be executed 9 times. if loop start index is 1 and terminator condition is index should be less than 10 and start index incremented by 2 , then code inside loop brackets will be executed 4 times. As mentioned FOR LOOP has three parts , start index , terminator condition and incremental value . Example : for(int i=0 ; i < 10 ; i++ ){ // Code to be executed } All this three operator = , < and ++ already explained in my previous post JAVA OPERATORS Please go through it if you have confusion to understand. And how this for loop is getting started and executing only till terminator condition. Java