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


Please Help Members By Posting Answers For Below Questions

What is unmodifiable list in java?

523


How many bits is a 64 bit byte?

524


What is a platform?

532


If a method is declared as protected, where may the method be accessed?

519


What are invisible components?.

1671






How do you convert boolean to boolean?

513


What is meant by object?

568


What is the exception hierarchy in java?

476


Explain about interthread communication and how it takes place in java?

529


what is collatration?

2735


explain the difference between jdk and jvm?

553


What is :: operator in java?

498


What are the differences between c++ and java?

568


What is difference between string and stringbuffer?

485


What is the difference between reader/writer and inputstream/output stream?

545