83,219 views
13 votes
13 votes
Which is true about arrays and methods? Group of answer choices Arrays cannot be passed to methods An array is passed to a method as a reference Passing an array to a method creates a copy of the array within the method A programmer must make a copy of an array before passing the array to a method

User Nashenas
by
2.5k points

1 Answer

15 votes
15 votes

Answer:

Correct option is: Arrays are passed to methods by reference.

Step-by-step explanation:

Arrays are passed to methods by reference. This means that if the content of the array is changed in a method, the change will be reflected in the calling method.

User HaveNoDisplayName
by
2.8k points