Return to site

JAVA CERTIFICATION QUESTION: Take control of Java’s enhanced “for” statement

· java

The enhanced for statement operates at a higher level of abstraction than the traditional simple for statement.

Which of the following is true about Java’s enhanced for statement? Choose one.

A. The loop cannot iterate directly over java.util.HashSet.

B. The loop can iterate directly over java.util.Map.

C. The loop does not provide access to the index of the current element.

D. The loop supports deletion of the current element during execution of the loop.

E. Early termination of the loop via a break statement is prohibited.

·ꓛ uoᴉʇdo sᴉ ɹǝʍsuɐ ʇɔǝɹɹoɔ ǝɥꓕ ·uoᴉsnʅɔuoꓛ

All Posts
×

Almost done…

We just sent you an email. Please click the link in the email to confirm your subscription!

OK