Java Ch 14 Exercises
False String objects are immutable and cannot be modified after they're created. StringBuilder objects can be modified after they're created.
A String can be modified after it's created. True False
False String objects are compared using operator == to determine whether they're the same object in memory.
When String objects are compared using operator ==, the result is true if the Strings contain the same value. True False
s1 += s2
Write a single statement that appends the string s2 to the string s1, using +=
s1.length()
Write a single statement that determines the length of the string in s1.
s1.equals(s2)
Write single statement that compares the string in s1 to the string in s2 for equality of contents.