Solved

Which of the Following Is an Invalid Way to Instantiate

Question 6

Multiple Choice

Which of the following is an invalid way to instantiate a String object?


A) String title = new String("Java Software Solutions") ;
B) String name = "John Lewis";
C) String empty = "";
D) String alsoEmpty = new String("") ;
E) all of the above are valid

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions