2D Arrays: Creation and Access

AP Computer Science A· difficulty 3/5

For <code>int[][] m = new int[3][4];</code>, <code>m[2].length</code> is

  • A

    3

  • B

    4

    check_circle
  • C

    12

  • D

    Compile error

Explanation

Each row is a length-4 array.

Want 10 more like this — adaptive to your weak spots?

Related questions