Vidyalelo
Java Programming · Q13

Flow Control

Programming · Java Programming · question 13

Q13

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

A.
Iterates through elements of an array or collection
Answer
B.
Performs mathematical calculations
C.
Declares variables
D.
Defines methods

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board