Which of the following are true about the enhanced for loop?
Select 3 options
A. It can iterate over an array or a Collection but not a Map.
B. Using an enhanced for loop prevents the code from going into an infinite loop
C. Using an enhanced for loop on an array may cause infinite loop.
D. An enhanced for loop can iterate over a Map.
E. You cannot find out the number of the current iteration while iterating.
If you want to solve the questions together with the experts and understand the concepts better, please contact us using the contact form or WhatsApp numbers. Selected people get to do that without any additional charges.