Question: solve 21) Which line has an error? 1 public static int computeSumOfSquares (int numl, int num2) { int sum; W N sum = (num1 *

solve

21) Which line has an error? 1 public static int computeSumOfSquares (int numl, int num2) { int sum; W N sum = (num1 * numl ) + (num2 * num2) ; 4 return; 5 7 a. Line 1 b. Line 3 c. Line 4 d. None of the lines contains an error 22) What is output? public static void changeRainfall (double dailyRain) { dailyRain [0] = 0.1; public static void main (String args ) { double rainValues = new double [2] ; rainValues [0 ] = 2.9; rainValues [1] = 1.3; changeRainfall (rainValues) ; System. out . printIn (rainValues [0] ) ; a. 2.9 b . 1.3 C. 0. 1 d. an array reference 23) Select the default constructor signature for a Student class. a. public Student( ) b. public void Student( ) c. private void Student( ) d. private Student( )

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 Mathematics Questions!