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
What are the different types of collections views being provided by the map interface? : java collections
What do you understand by synchronization? Why is it important?
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.
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.
What are the types of the main implementing classes in the map interfaces? : java collections
Which sorting algorithm is used by collections.sort() in java ?
What is the use of the list interface in the java collection? : java collections
What is the enumerator of the java collection framework? : java collections
What are the different types of classes implemented in the set interfaces? : java collections
In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?
What are the uses of the set interfaces in the java collections? : java collections
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
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
please mail me the interview question based on java/j2ee
What is the difference between comparable and comparator in java.util pkg?