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 the difference between serializable and externalizable interfaces?
Why enumeration is faster than iterator?
Can we have multiple public classes in a java source file?
What is the different types of functions?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
How do you avoid global variables?
What is difference between filereader and bufferedreader?
What exactly is methodology?
What are the different http methods?
What types of index data structures can you have in java?
How many characters is 16 bytes?
What language is java written?
What is a void method java?
Which is better singleton or static class?
What is map in java?