The enhanced for loop (or for-each loop) is also known as the ________ loop.

  • Enhanced Loop
  • For Loop
  • For-Each Loop
  • Iteration Loop
The enhanced for loop in Java is often referred to as the "for-each" loop because it iterates through each element of an array or collection, making it a convenient way to loop through elements without explicitly defining an index. Options 1 to 3 are incorrect terms for describing this loop.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *