This and the next two questions are based on the followingprogram:
public class Program1 {
public static void main(String[] args)
{
int[] x = new int[3];
int[] y = {3};
int r1 = m(x);
int r2 = m(y);
//at this point, values of x.length, r1, r2?
}
public static int m(int[] x) { int result=0; for (int i=0; i<x.length; i++) { result += x[i]; } return result; }
}
In the main method after the program has evaluated allstatements before the comment, what is the value of x.length?_______________.
What is the value of r1? ____
What
PayPal Gateway not configured
PayPal Gateway not configured