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
What do you mean by global variable?
enlist some features of jdk.
What are the methods used to implement for the key object in the hash map?
What is the difference between an interface and an abstract class?
What is currentthread()?
What is an example of a conditional statement?
Which is better 64 bit or 32 bit?
Is java a security risk?
What does singleton class mean?
What are Normalization Rules? Define Normalization?
Can a variable be local and static at the same time?
extending thread class or implementing runnable interface. Which is better? : Java thread
In case of inheritance what is the execution order of constructor and destructor?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
How many bytes is a string in java?