A

Admin • 828.43K Points
Coach

Q. How do you create an array of 5 Strings?

  • (A) String arr[] = new String[5];
  • (B) String arr = new String[5];
  • (C) String[] arr = new String();
  • (D) String[] arr = String[5];
  • Correct Answer - Option(A)
  • Views: 13
  • Filed under category Java
  • Hashtags: Java Array

Explanation by: Admin
Option A is the correct syntax for creating a String array.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.