What does the term ‘immutable’ means in term of string objects?
A. We can modify characters included in the string
B. We cannot modify characters contained in the string
C. We cannot perform various operation of comparison,inserting,appending etc
D. None of the mentioned
Answer:A
What does the term ‘immutable’ means in term of string objects?
A. We can modify characters included in the string B. We cannot modify characters contained in the string C. We cannot perform various operation of comparison,inserting,appending etc D. None of the mentioned
Explanation: String objects are ‘immutable’ means we cannot modify the characters contained in string. Also operation on string produce a modified version of string rather then modifying characters of string.