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

Computer Science & Information Technology

You might also like to view...

Mistakes in the behavior of a method are called "syntax errors."

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which SharePoint view is used to provide a graphical representation for a project timeline?

A) Access view B) Custom view C) Gantt view D) Standard view

Computer Science & Information Technology

The foreground color that is applied to an element's text appears ____ an element's background color.

A. behind B. beside C. on top of D. blended with

Computer Science & Information Technology

The ______ unit refers to the case on a desktop that contains and protects the motherboard, hard drive, memory, and other electronic components.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology