hi to all. well can you please tell me that why String class
is immutable?
Thanks in advance.
Answer Posted / rohit kumawat
String class actually kept immutable by developers of "Sun
microsytems" because of you use it in desktop application
not for mobile application where memory is short & less to
work
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a function argument in java?
do I need to use synchronized on setvalue(int)? : Java thread
Can we have a method name same as class name in java?
what is predefined function in java?
What are the methods used to implement for the key object in the hash map?
What is the covariant return type?
What are white spaces in java?
What is Gang of four design patterns
Can we write a class without main method in java?
What is the purpose of skeleton and stub?
Write a program in java to find the maximum and minimum value node from a circular linked list.
Why we use methods in java?
Why stringbuilder is not thread safe in java?
Why do we create threads in java?
What is java string pool?