A

Admin • 828.43K Points
Coach

Q. Which enhanced loop is specifically used for collections and arrays?

  • (A) for
  • (B) while
  • (C) for-each
  • (D) do-while
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Java
  • Hashtags: Java Loops

Explanation by: Admin
for-each is a simplified for loop designed for arrays and collections.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.