Examveda
Examveda

What is the purpose of the "for-each" loop in Java?

A. Iterates through elements of an array or collection

B. Performs mathematical calculations

C. Declares variables

D. Defines methods

Answer: Option A


This Question Belongs to Java Program >> Flow Control

Join The Discussion

Related Questions on Flow Control