2D Arrays: Creation and Access

AP Computer Science A· difficulty 3/5

<code>int[][] m = new int[3][4];</code> — initial element values are

  • A

    Garbage

  • B

    Random

  • C

    All null

  • D

    All 0

    check_circle

Explanation

int defaults to 0; same as 1D.

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

Related questions