Which are true statements comparing for-each and traditional for loops? (Choose two.) A. Both can iterate through
Question:
Which are true statements comparing for-each and traditional for loops? (Choose two.)
A. Both can iterate through an array starting with the first element.
B. Only the for-each loop can iterate through an array starting with the first element.
C. Only the traditional for loop can iterate through an array starting with the first element.
D. Both can iterate through an array starting from the end. E. Only the for-each loop can iterate through an array starting from the end.
F. Only the traditional for loop can iterate through an array starting from the end.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
OCP Oracle Certified Professional Java SE 11 Developer Practice Tests Exam 1Z0 819 And Upgrade Exam 1Z0 817
ISBN: 9781119696131
1st Edition
Authors: Scott Selikoff, Jeanne Boyarsky
Question Posted: