Java - Arrays
What will be the output of this code?
int[] arr = {1, 3, 5};
for(int i = arr.length - 1; i >= 0; i--) {
System.out.print(arr[i]);
}int[] arr = {1, 3, 5};
for(int i = arr.length - 1; i >= 0; i--) {
System.out.print(arr[i]);
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions