Question: What is output? public static void changeRainfall ( double [ ] dailyRain ) { dailyRain [ 0 ] = 0 . 1 ; } public

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.println(rainValues);
}
Question 15Answer
a.
2.9
b.
an array reference
c.
3.1
d.
0.1

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