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 can we make a class virtual?

1118


Why doesn't the java library use a randomized version of quicksort?

997


Objects or references which of them gets garbage collected?

970


What do you mean by platform independence?

1053


Can constructor be protected in java?

970


Explain about the interpreter in java?

1063


What are loops in java?

1277


Is heap stored in ram?

964


Which class is the superclass for all the classes?

1021


What is "this" keyword in java? Explain

1104


Why stringbuilder is not thread safe in java?

1019


What is the purpose of garbage collection in java?

1105


How can we avoid including a header more than once?

1040


Can final class have constructor?

933


What is the purpose of the system class in java programming?

1110