Given:
1. class Main { 2. public static void main(String[] args) { 3. int[] x = {7,6,5,4,3,2,1}; 4. // insert code here 5. System.out.print(y + " "); 6. } 7. } 8. }
Which, inserted independently at line 4, compiles? (Choose all that apply.)
A, D, and F are correct.
A is an example of the enhanced for loop.
D and F are examples of the basic for loop.
B, C, and E are incorrect.
B is incorrect because its operands are swapped.
C is incorrect because the enhanced for must declare its first operand.
E is incorrect syntax to declare two variables in a for statement.