What is the output of the following code?
```
public class Test {
public static void main(String[] args) {
int[][][] data = {{{1, 2}, {3, 4}},
{{5, 6}, {7, 8}}};
System.out.print(ttt(data[0]));
}
public static int ttt(int[][] m) {
int v = m[0][0];
for (int i = 0; i < m.length; i++)
for (int j = 0; j < m[i].length; j++)
if (v < m[i][j])
v = m[i][j];
return v;
}
}```
a. 1
b. 2
c. 4
d. 5
e. 6
c
You might also like to view...
The ___________ method of the BufferedReader class reads a line from a file.
a) readLine b) read c) line d) lineRead
What DC is responsible for ensuring that changes made to object names in one domain are updated in references to these objects in other domains?
A. RID Master B. Infrastructure master C. schema master D. PDC emulator
Suppose that x = 1565.683, y = 85.78, and z = 123.982. What is the output of the following statements? cout
A. 1565.683 85.8000 123.98 B. 1565.680 85.8000 123.98 C. 1565.683 85.7800 123.98 D. 1565.683 85.780 123.980
The virus signature file is maintained by what type of software?
A. antivirus B. keylogger C. remote control D. firewall