A

Admin • 828.43K Points
Coach

Q. Which of the following creates a two-dimensional array in Java?

  • (A) int[][] arr = new int[3][3];
  • (B) int arr[3][3];
  • (C) int arr = int[3,3];
  • (D) int arr(3)(3);
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category Java
  • Hashtags: Java Array

Explanation by: Admin
Option A is the correct syntax for a 2D array in Java.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.