Unit 1 · Using Objects and Methods
String Immutability
String Immutability MCQ Practice
Question 1 of 15
Answered 0 of 15
Choose one answer.
What is printed by the following code segment?
String s = "cat";
s.substring(0, 2);
System.out.print(s);Unit 1 · Using Objects and Methods
Answered 0 of 15
Choose one answer.
String s = "cat";
s.substring(0, 2);
System.out.print(s);