Limited access

Upgrade to access all content for this subject

Consider the following code segment.

String[][] shoppingLines = {{"Susie", "Ken", "Hank", "Bob"},
                            {"Jan", "Josie", "Kris", "Wendy"},
                            {"Karla", "Nancy", "Geri", "Tom"}};
System.out.println(shoppingLines[3][1]);

What is the output once this segment of code has been executed?

A

Karla.

B

Nancy.

C

Wendy.

D

Hank.

E

An error is thrown.

Select an assignment template