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...

hi to all. well can you please tell me that why String class
is immutable?

Thanks in advance.

Answer Posted / hari

Well it is immutable because of the memory concern. For
every new string if there is new object then it will take
lot of memory and if there is such requirement then there
is StringBuffer class provided.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain all java features with real time examples

1707


How big is a 32 bit integer?

1030


What is generics in java interview questions?

1048


Can a boolean be null java?

959


Can you give names of Container classes?

2293


Can you explain the cs option of java interpreter?

934


What is the difference between a method and a function in alice?

1175


Is list ordered in java?

960


What are the important methods of java exception class?

1088


Differences between external iteration and internal iteration?

1149


What is a local class in java?

1017


What are the new features in java 8?

1004


How do you input a string in java?

1047


What environment variables do I need to set on my machine in order to be able to run java programs?

1003


Can you call a method in a method?

1075