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

Explanation

Core Concept

Both variables refer to the same array.

Correct Answer

Achanges a[0] as well

More Unit 6: Array practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 6: Array Questions →