Question: If a method should return an array to its calling method, ____________. a. The methods return type must match its parameter type b. The return

If a method should return an array to its calling method, ____________.
a. The method’s return type must match its parameter type
b. The return type in the method header is preceded by an ampersand
c. The return type in the method header is followed by square brackets
d. A Java method cannot return an array.

Step by Step Solution

3.31 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

c The return ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming Questions!