A

Admin • 831.35K Points
Coach

Q. Which loop is best suited for iterating over an array?

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

Explanation by: Admin
for-each loop is ideal for simple array iteration.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.