Which TWO statements are true about passing arrays to methods in Java?
Changes to array elements affect the original array.
Why this answer
Option B is correct because Java passes object references by value. When an array is passed to a method, the method receives a copy of the reference to the array object. This copy still points to the same array object in heap memory, so the method can modify the elements of the array through that reference.
These modifications are visible to the caller because they affect the same underlying array object.
Exam trap
The trap here is that candidates often confuse 'pass by reference' with 'pass by value of the reference,' leading them to incorrectly believe that reassigning the parameter inside the method will affect the caller's variable (Option A), or that modifications to array elements require a return value (Option C).