int []a = {5,5}; int b = 1; a[b] = b = 0; System.out.println(Arrays.toString(a));
Login in to like
Login in to comment
Why is a[1] and not a[0] is assigned? When does the JVM resolve the a[b] reference to a memory address?
2018 Nov 30, 6:12:59 PM
or Read more about Java Quizzes
Login in to like
Login in to comment