subject

Consider the following code segment, where twoD is a two-dimensional (2D) String array. The code segment is intended to display "JAVA". System. out. print(twoD[2][1]);

System. out. print(twoD[3][2]);

System. out. print(twoD[1][1]);

Which of the following code segments properly declares and initializes twoD so that the code segment works as intended?

String[][] twoD = {{"V", "AV", "J"}, {"JA", "VA", "A"},

{"JA", "J", "JAV"}, {"AV", "V", "A"}};

String[][] twoD = {{"V", "AV", "J"}, {"JA", "VA", "A"}, {"JA", "J", "JAV"}, {"AV", "V", "A"}};
A

String[][] twoD = {{"VA", "J", "A", "V"}, {"J", "A", "V", "A"},

{"AV", "A", "JA", "V"}};

String[][] twoD = {{"VA", "J", "A", "V"}, {"J", "A", "V", "A"}, {"AV", "A", "JA", "V"}};
B

String[][] twoD = {{"VA", "J", "V", "JA"}, {"J", "JA", "A", "VA"},

{"J", "VA", "A", "V"}};

String[][] twoD = {{"VA", "J", "V", "JA"}, {"J", "JA", "A", "VA"}, {"J", "VA", "A", "V"}};
C

String[][] twoD = {{"A", "VA", "J", "V"}, {"VA", "A", "JA", "V"},

{"VA", "J", "A", "V"}};

String[][] twoD = {{"A", "VA", "J", "V"}, {"VA", "A", "JA", "V"}, {"VA", "J", "A", "V"}};
D

String[][] twoD = {{"A", "V"}, {"VA", "J"}, {"J", "A"}, {"A", "AV"}};

String[][] twoD = {{"A", "V"}, {"VA", "J"}, {"J", "A"}, {"A", "AV"}};
E

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
question
Computers and Technology, 22.06.2019 21:50
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Q13 what function does a security certificate perform? a. creates user accounts b. scrambles data c. identifies users d. creates password policies e. provides file access
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Match the items with their respective descriptions.
Answers: 1
You know the right answer?
Consider the following code segment, where twoD is a two-dimensional (2D) String array. The code seg...
Questions
question
Social Studies, 16.10.2020 15:01
question
Mathematics, 16.10.2020 15:01
question
Geography, 16.10.2020 15:01