Question 16
Not yet
answered
Flag question
What will be the output of the following code?
public class Main {
public static void main(String[] args) {
=
int[] arr {1, 2, 3, 4, 5};
for(int i = 0; i < arr.length; i++) {
arr[i] = arr[i] *2;
}
for(int i : arr) {
System.out.print(i + " ");
}
}
}
O A. 149 16 25
B. 246 8 10 12
O C. 246810
D. 12345