Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Which of the following is NOT a valid way to declare and initialize a string variable in Java?
char[ ] charArray = {'H', 'e', 'l', 'l', 'o'};
String str = new String(charArray);
String str = "Hello";
String str = new String("Hello");
String str = 'Hello';
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!