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
Get step-by-step solutions from verified subject matter experts
