Question: If you create an array with the following definition and method call: double[ ] scores = new double[10]; calcAverage(scores); What is the signature of the

If you create an array with the following definition and method call: double[ ] scores = new double[10]; calcAverage(scores); What is the signature of the method calcAverage()?

1. public static calcAverage(scores) { ///code goes here }

2. public static void calcAverage(double[] numbers) { ///code goes here }

3.

public static void calcAverage(double[20] numbers) { ///code goes here }

4.

public static calcAverage(double[] scores) { ///code goes here }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!