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 →
pojo Question: public static void main(String[] args) { int arr1[]={2,4,6,8}; int arr2[]={1,3,5,7,9}; arr2=arr1; for(int e2:arr2){ System.out.println(e2); } } ====> D Reply
The image link is dead.
Question:
public static void main(String[] args) {
int arr1[]={2,4,6,8};
int arr2[]={1,3,5,7,9};
arr2=arr1;
for(int e2:arr2){
System.out.println(e2);
}
}
====> D