What is the result? Given: What is the result? Given: What is the result? A. 1 3 5 7 B. 1 3 5 7 9 C. 2 4 6 8 9 D. 2 4 6 8 Show Hint ← Previous question Next question →
Ryan The question is… public class Test2 { public static void main (String[] args) { int ar1[] = {2,4,6,8}; int ar2[] = {1,3,5,7,9}; ar2 = ar1; for (int e2 : ar2) { System.out.print(” ” + e2); } } } and the answer is… D Reply
The question is…
public class Test2 {
public static void main (String[] args) {
int ar1[] = {2,4,6,8};
int ar2[] = {1,3,5,7,9};
ar2 = ar1;
for (int e2 : ar2) {
System.out.print(” ” + e2);
}
}
}
and the answer is…
D