Answer the following statements true (T) or false (F)
1) When strings are compared with ==, the result is true if the strings contain the same
values
2) A string can be modified after it’s created.
3) StringBuilder method EnsureCapacity sets the StringBuilder instance’s length to the
argument’s value.
4) Method Equals and the equality operator work the same for strings.
1) True.
2) False. strings are immutable; they cannot be modified after they’re created. String-
Builder objects can be modified after they’re created.
3) False. EnsureCapacity simply ensures that the current capacity is at least the value
specified in the method call.
4) True.
You might also like to view...
PowerPoint saves a master as a template with an extension of ________
Fill in the blank(s) with correct word
The 0s and 1s used to represent digital data are referred to as _________ digits.
Fill in the blank(s) with the appropriate word(s).