This course will be retired on March 31, 2026. We recommend "Java Arrays" for up-to-date content.

Well done!

You have completed Accessing Items!

Quiz Question 1 of 3

Choose the code that will retrieve the last element in the following array:

String[] goldenGirls = new String[4];
goldenGirls[0] = "Blanche";
goldenGirls[1] = "Sophia";
goldenGirls[2] = "Rose";
goldenGirls[3] = "Dorothy";

Choose the correct answer below:

Skip Quiz Review Video