hi to all. well can you please tell me that why String class
is immutable?
Thanks in advance.
Answer Posted / syed
Since, return type of the string class cannot be altered
with substrings or any ammendments to it .
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Can a class have multiple constructors?
What is the purpose of the strictfp keyword?
Is hashset ordered java?
Does list maintain insertion order java?
What is java dot?
Explain working of call by reference function invoking.
Can we overload the methods by making them static?
What is garbage collection? What is the process that is responsible for doing that in java?
What does string [] args mean?
Is null function in java?
What is the difference between the final method and abstract method?
Differentiate between run time error and syntax error.
Define how can we find the actual size of an object on the heap?
What does compareto () do in java?
What is the basic difference between string and stringbuffer object?