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 an algorithm in java collection framework? : java collections
please mail me the interview question based on java/j2ee
what is mean by hasing and maping in java platform and advantage?
What are the differences between the java collection and the java list? : java collections
What is the difference between comparable and comparator in java.util pkg?
Which interface does java.util.hashtable implement?
What are the classes in the java collection framework? : java collections
Which sorting algorithm is used by collections.sort() in java ?
What is the enumerator of the java collection framework? : 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 maps interfaces in the java collections? : 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 do you understand by synchronization? Why is it important?
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.?.
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.