AP Computer Science Aeasymcq1 pt

After int[][] g = new int[2][3], the value of g[1][2] is

A.0
B.null
C.3
D.5

Explanation

Core Concept

int elements default to zero.

Correct Answer

A0

More Unit 8: 2D Array practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 8: 2D Array Questions →