Difference between String and StringBuffer.

Answer Posted / madhu

string is imutable and stringbuffer is mutable

Mutable means storing location is same
Imutable means storning location is different

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a method in java?

718


What is a java list?

809


What is the main advantage of passing argument by reference?

703


what is the difference between thread and runnable types? : Java thread

754


What is append function?

752


FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?

2960


What is difference between calling start() and run() method of thread?

758


What is a pattern what is an anti pattern?

695


Explain the difference between arraylist and linkedlist in java?

690


What is the use of static methods?

781


What is static method with example?

856


What is the finalize method do?

812


What are classloaders?

764


Can you explain the cs option of java interpreter?

695


What is the difference between arraylist and hashset in java?

739