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:

Verified
Correct Answer:
Verified
Related Questions
Q1: Which of the following expressions correctly compute
Q2: When two references point to the same
Q3: A special method that is invoked to
Q4: When an object variable is declared but
Q5: The _ operator is used to instantiate
Q7: Write a single line that creates a
Q8: Suppose we have a String object called
Q9: Which of the following is a correct
Q10: Assume that we have a Random object
Q11: Write an expression that will compute the