for-each loop in Java programming Hands on Coding

For each loop in Java;


 
  • This is a special type of loop which can be used mostly with arrays.
  • It stores each and every element of array in a variable and executes the body of loop.
  • It begins with for keyword like a normal for loop.


Thank you