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.
You might also like to view...
Which of the following frames does NOT correspond to user actions?
A. Over B. Up C. Hit D. Down
A wildcard character used as the first and/or the last character in a character string to match any number of characters is the ____ character.
A. # B. + C. ? D. *
_____ states the principles and core values that are essential to a set of people and that, therefore, govern these people's behavior.
A. Code of ethics B. Code of conduct C. Code of civil procedure D. Code of criminal procedure
Which of the following tools should be used to physically attach an RJ45 connector to a CAT5 cable?
A. Snips B. Screwdriver C. Punch down tool D. Crimping tool