What is the result? Given: What is the result? Given: What is the result? A. 7 8 9 B. 0 1 2 C. 6 8 10 D. Compilation fails E. 6 7 8 Explanation: Show Hint ← Previous question Next question →
pojo Image: public static void main(String[] args) { int arr1[]={6,7,8}; for(int i:arr1){ System.out.println(i+” “); i++; } } Reply
Image link is dead.
Image:
public static void main(String[] args) {
int arr1[]={6,7,8};
for(int i:arr1){
System.out.println(i+” “);
i++;
}
}
e