es = new int[2][8]; es = new int[4][4];

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question
100%
Which of the following would correctly declare and instantiate a 2D array with a total of 16 ints? Choose all that apply.
int[2] values = new int[8];
int values = new int[2][8];
int values = new int[4][4];
O int[2,8] values = int[16];
int[] values = int[8,2];
int[2][8] values = new int;
int[] values = new int[2,8];
O int00 values = new int[8][2];
int([4][4] values = new int
O int
values = new int
O int values = new int[];
none of these
Oint values = int[4,4];
Transcribed Image Text:Which of the following would correctly declare and instantiate a 2D array with a total of 16 ints? Choose all that apply. int[2] values = new int[8]; int values = new int[2][8]; int values = new int[4][4]; O int[2,8] values = int[16]; int[] values = int[8,2]; int[2][8] values = new int; int[] values = new int[2,8]; O int00 values = new int[8][2]; int([4][4] values = new int O int values = new int O int values = new int[]; none of these Oint values = int[4,4];
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Passing Array as Argument
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT