Question: Which of the following creates an empty two-dimensional array with dimensions 22? A. int[][] blue = new int [2, 2]; B. int[][] blue = new

Which of the following creates an empty two-dimensional array with dimensions 2×2?

A. int[][] blue = new int [2, 2]; B. int[][] blue =

A. int[][] blue = new int [2, 2]; B. int[][] blue = new int[2], [2]; C. int[][] blue = new int [2] [2]; D. int[] [] blue = new int [2 x 2]; E. None of the above

Step by Step Solution

3.36 Rating (143 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The syntax for declaring a twodimensional array in Java involves specifying the size of each dimensi... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!