AP Computer Science Amediummcq1 pt
After int[] b = a, assigning to b[0]
A.changes a[0] as well
B.leaves a[0] unchanged
C.throws an exception
D.copies the array
Both variables refer to the same array.
Achanges a[0] as well
Practice more AP Computer Science A questions with full explanations
Practice Unit 6: Array Questions →