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

What are the two parts of a conditional statement?

909


How do you write a conditional statement?

890


Which method returns the length of a string?

976


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

1267


what is the difference between process and thread? : Java thread

924


What is difference between Heap and Stack Memory?

976


What is boolean in java?

908


What is break and continue statement?

1024


How many wrapper classes are there in java?

961


How big is a pointer?

980


How can we create a thread in java?

961


What package is math in java?

940


What is a parameter in java?

950


What is a parameter in simple terms?

936


What is a java lambda expression?

981