Which correctly creates an array of five empty Strings? O String] a = new String [5]; O String[] a = {"", %3D String[5] a; O String[ ] a = new String [5]; for (int i = 0; i < 5; a[i++] = null); %3D %3D %3D

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter14: Files And Streams
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
Solve using Java
O 12
D
Question 6
Which correctly creates an array of five empty Strings?
O String[] a = new String [5];
O String[] a = {", "", ", "", ""};
String[5] a;
String[ ] a = new String [5]; for (int i = 0; i &lt; 5; a[i++] = null);
D
Question 7
Transcribed Image Text:O 12 D Question 6 Which correctly creates an array of five empty Strings? O String[] a = new String [5]; O String[] a = {", "", ", "", ""}; String[5] a; String[ ] a = new String [5]; for (int i = 0; i &lt; 5; a[i++] = null); D Question 7
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,