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...

How are mounted drives defined and used in Windows 10?

What will be an ideal response?

Computer Science & Information Technology

Although you can import vector images into a Flash document , this kind of image is usually best used as a static design element or for limited animation.

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

Computer Science & Information Technology

What is the main reason to split an Access database?

A) Improve development and maintenance B) To confirm the primary key of each table C) Controls how the tables are linked D) To decide which fields go to which tables

Computer Science & Information Technology

____________________ is the organization that now controls Ethernet standards.

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

Computer Science & Information Technology