Multiple Choice
Complete the following code snippet with the correct enhanced for loop so it iterates over the array without using an index variable.
A) for (String str : arr)
B) for (str : String arr)
C) for (str[] : arr)
D) for (arr[] : str)
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q98: What is the output of the following
Q99: What is the value of the count
Q100: Which one of the following statements is
Q101: Assume the method doSomething has been defined
Q102: Java 7 introduced enhanced syntax for declaring
Q104: What will be printed by the statements
Q105: Assume the array of integers values has
Q106: What is the result of the following
Q107: When the order of the elements is
Q108: What (if anything) is wrong with the