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
Why do we declare a class static?
What is anti pattern in cyber security?
What is the difference between serializable and externalizable interface?
what is the volatile modifier for? : Java thread
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
What causes memory leaks in java?
What is anagram number?
What does n mean?
What is string english?
How does system arraycopy work in java?
What is thread pool? How can we create thread pool in java?
If we don’t want some of the fields not to serialize how to do that?
Explain the use of sublass in a java program?
What is the largest long allowed by java?
What java ide should I use?