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 / rakesh

For save the memory and reduce the response time.
StringBuffer provide an alternet for String class object,
which is muttable.

Is This Answer Correct ?    5 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 8 data types in java?

943


How many digits can a float hold?

955


How to check if a list is sorted in java?

981


How is string stored in java?

1011


What is the difference between yield() and sleep()?

967


What is type parameter in java?

917


How to convert string to byte array and vice versa?

1029


What are the three parts of a lambda expression?

955


What is the primary benefit of encapsulation?

1018


What methods are used to get and set the text label displayed by a button object?

971


Should you use singleton pattern?

904


What is Hierarchy of exception?

1037


How will you reverse a singly-link list?

954


What is the difference between the paint() and repaint() methods?

1017


What is busy spin, and why should you use it?

1028