why String class is immutable.

Answer Posted / kirthika

everytime a string object is created, it enters into the string pool and thereby this concept was mainly to enhance the response time if the same string is used elsewher..
therefore string class is immutable..

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you declare an empty string?

605


What is method in research paper?

563


What does nextint () do in java?

540


State the merge-sort principle and its time complexity.

559


What is a ?

737






Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?

592


How do you generate random numbers in java?

499


What is a databasemetadata?

535


Why does abstract class have constructor?

536


Is java se free?

512


How will you get the platform dependent values like line separator, path separator, etc., ?

571


What does exp mean in math?

520


What is the use of java?

520


Why we used break and continue statement in java?

543


How does map works in java?

496