Explain what it means for a String object to be immutable. Are there any workarounds for this?
What will be an ideal response?
String objects are immutable, meaning that once a String object is created, its value cannot be
lengthened or shortened, nor can any of its characters change. However, there are several methods in the String class that
return new modified String objects. By reassigning the original reference to the result of calling one of these methods, we
can effectively change the value of a String object.
Computer Science & Information Technology
You might also like to view...
Which of the following is an example of a protocol?
a. IPsec b. PSU c. CPU d. VPN
Computer Science & Information Technology
The Select Trusted Locations option of the Trust Center dialog box allows the user to designate a folder on the computer where trusted databases reside
Indicate whether the statement is true or false
Computer Science & Information Technology