Question: Consider the following code segment, which is intended to declare and initialize the two - dimensional ( 2 D ) String array things. / *

Consider the following code segment, which is intended to declare and initialize the two-dimensional (2D) String array things.
/* missing code */={{"spices", "garlic", "onion", "pepper"},
{"clothing", "hat", "scarf", "gloves"},
{"plants", "tree", "bush", "flower"},
{"vehicles", "car", "boat", "airplane"}};
Which of the following could replace /* missing code */ so that things is properly declared?
a
[][]String things
b
String[][] things
c
String[] String[] things
d
new String[][] things
e
new(String[][]) things

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!