Asked by Ryane Smalley on Jun 29, 2024

verifed

Verified

For-each loops can not be used with Collection classes.

For-each Loops

A control flow statement for traversing items in a collection or array, providing a simpler and more readable way to iterate through the elements without using an index variable.

Collection Classes

Classes in programming that are used to store and manage groups of objects, such as lists, sets, and maps.

  • Comprehend the intent and capabilities offered by the Iterator interface and the techniques for iterating through elements of a collection.
verifed

Verified Answer

KR
Keila RodriguezJul 01, 2024
Final Answer :
False
Explanation :
For-each loops can be used with Collection classes such as ArrayList, HashSet, etc.