V
Q. Which of the following is a valid declaration and initialization of a String array in Java?
- Correct Answer - Option(D)
- Views: 30
- Filed under category JAVA
V
Option A initializes a String array named "names" with three elements: "Alice", "Bob", and "Charlie".
You must be Logged in to update hint/solution
Discusssion
Login to discuss.