What is the output of the following program?

```
public class Test {
public static void main(String[] args) {
int[][] values = {{3, 4, 5, 1}, {33, 6, 1, 2}};

for (int row = 0; row < values.length; row++) {
System.out.print(m(values[row]) + " ");
}
}

public static int m(int[] list) {
int v = list[0];
for (int i = 1; i < list.length; i++)
if (v < list[i])
v = list[i];
return v;
}
}
```
a. 3 33
b. 1 1
c. 5 6
d. 5 33
e. 33 5

d. 5 33

Computer Science & Information Technology

You might also like to view...

Which of the following is NOT true when resizing and managing controls?

A) Controls can be resized to make the form more user friendly. B) When you create a form using the wizard, the order that you choose the fields in the wizard step is the order the fields are added to the form. C) Once the control is selected you can move it or resize it. D) When you click a control in Form view, an orange border appears around the control.

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1) A static variable represents class-wide information. 2) A program contains a separate copy of a static variable for each object that's instantiated. 3) Variables that are static have class scope. 4) Variables that are static have class scope. 5) Data members declared as readonly must be initialized in their declaration.

Computer Science & Information Technology