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

what is diff string and stringbuffer

Answer Posted / aashish r. wadhokar

string is immutable,that we can not be modify its value.
when we assign any new value to String variable.a new object
is created on heap memory and that string variable refers to
that object.

whereas
StringBuffer is mutable so we can be modify its value.
as it refers to the same object and changes the state of
that object

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance

2298


my interviewer asked me what technical specification you used how to answer that question

2325


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

2005


Should we create system software ( e.g operating system ) in java ?

999


What is the difference between comparable and comparator in java.util pkg?

1069


What is java collection? : java collections

1058


Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

2009


What are the interfaces in java collections? : java collections

1085


What do you understand by synchronization? Why is it important?

1003


What is an algorithm in java collection framework? : java collections

1016


What is the enumerator of the java collection framework? : java collections

990


What is deque in the java collections framework? : java collections

1021


What are the differences between the java collection and the java list? : java collections

1056


What are the main classes of the list interfaces? : java collections

985


What is the use of hashcode in java ?

1058