Which correctly creates an array of five empty Strings?

a. String[] a = new String [5];
b. String[] a = {"", "", "", "", ""};
c. String[5] a;
d. String[ ] a = new String [5]; for (int i = 0; i < 5; a[i++] = null);

b. String[] a = {"", "", "", "", ""};

Computer Science & Information Technology

You might also like to view...

Which of the following features does PowerPoint NOT provide for modifying pictures?

A) Transitions B) Shape C) Recolor D) Contrast

Computer Science & Information Technology

Which layer provides network services to any software application running on the network?

A) Physical B) Network C) Application D) Presentation

Computer Science & Information Technology