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
Q9: Multiple reference variables can refer to the
Q10: A special method that is invoked to
Q11: Which of the following represents the proper
Q12: A variable that is declared as a
Q13: _ is the automatic conversion between a
Q15: The new operator is used to access
Q16: The String class _ .
A) is part
Q17: The _ operator is used to instantiate
Q18: Which of the following best describes what
Q19: Consider the following snippet of code: Random
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents