94.6k views
2 votes
"The correct syntax for passing an array as an argument to a method when a method is called and an array is passed to it is: "

User CAMason
by
7.1k points

1 Answer

2 votes

Question:

"The correct syntax for passing an array as an argument to a method when a method is called and an array is passed to it is: "

A) a[0]..a[a.length]

B) a()

C) a

D) a[]

Answer:

The correct answer is A.

An example is given in the attachment.

Cheers!

"The correct syntax for passing an array as an argument to a method when a method-example-1
User Dbeacham
by
7.1k points