Given:
public class Main { public static void main(String[] args) { byte[][] ba = {{1,2,3,4}, {1,2,3}}; System.out.println(ba[1].length + " " + ba.length); } }
What is the result?
C is correct.
A two-dimensional array is an "array of arrays."
The length of ba is 2 because it contains two, one-dimensional arrays.
Array indexes are zero-based, so ba[1] refers to ba's second array.