A

Admin • 833.24K Points
Coach

Q. What is the data type of elements in this array?
String[] names = new String[5];

  • (A) char
  • (B) String
  • (C) Object
  • (D) Array
  • Correct Answer - Option(B)
  • Views: 29
  • Filed under category Java
  • Hashtags: Java Array

Explanation by: Admin

The array holds elements of type String.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.