This is a java certification simulation issue at Whizlabs.
public class Whizlabs {
public static void main(String[] args) {
int[] testData = {1, 2, 3};
for(abc){
}
}
}
The question is: "Choose the option to replace the text" abc "in the above code." (Select 2 options)
A. int i : testData
B. int i = 0; i < 1; i++
C. i++
D. ;i++; 1 < 1;
E. ;i < 1; 0
The correct answer is the letter "A" and "B". Because? I did not understand the answer.