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 is mean by hasing and maping in java platform and advantage?
What are the interfaces in java collections? : java collections
What do you understand by synchronization? Why is it important?
Which interface does java.util.hashtable implement?
What is the use of hashcode in java ?
What are the different types of collections views being provided by the map interface? : java collections
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
What are the uses of the set interfaces in the java collections? : java collections
What are the different types of classes implemented in the set interfaces? : java collections
What is iterator in the java collections framework? : java collections
who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.
What is deque in the java collections framework? : java collections
What are the types of the main implementing classes in the map interfaces? : java collections