Multiple Choice Question

Quiz Guidelines

 

QID: 
473
Question: 

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.

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!