🎴 Flashcard Mode
Arrays and Strings
Card1 / 11
Mastered0
Review0
QuestionClick to flip
How many string objects are created by the given statement?
String str=new String(“Aliens”);
AnswerClick to flip back
A
2
💡 Explanation:
The given statement creates 2 objects. The first object is refereed to by “str” and the second by the last string “Aliens”.