At the Sun certification site (see link in mock exam list) there are two sets of sample questions. The first set of 7 questions is for
Java 1.2. The second set of six questions is for Java 1.1.
The answer to the following question is given as B.
5. Which correctly creates an array of five empty Strings (select all that apply)?
A.
String a [ ] = new String [5]; for (int i = 0; i < 5; a[i++] = "");
B. String a [ ] = {"", "", "", "", ""};
C. String a [5];
D. String [ ] a = new String [5]; for (int i = 0; i < 5; a[i++] = null);
E. String [5] a;
However, I believe A would work as well.