Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 start a new line in java?

944


What happens when heap memory is full?

936


What does java stand for?

1061


What happens when I use / and % with a negative numerator?

1013


What is java autoboxing?

909


What is final, finally, finalize?

1053


What are the four corner stones of oop?

990


What is an arraylist in java?

1012


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

1219


What is the difference between static method and instance method in Java?

1151


What is the base class of all classes?

1013


Why hashmap is used in java?

1032


What is thread pool? How can we create thread pool in java?

1031


What do you understand by overloading and overriding in java?

1031


How do you declare a string variable?

979