Difference between String & StringBuffer

Answer Posted / navneet raushan

The great difference between String and string buffeer is
that String buffer is thread safe where as String is not
thread safe as well as string is immutable and String
buffewr is mutable.

Is This Answer Correct ?    77 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is private static class in java?

503


What is immutable class in java?

506


What is parse method?

527


What is the difference between sleep and wait in java?

505


What is string in java with example?

478






What is the difference between comparison done by equals method and == operator?

561


How do you compare objects in java?

491


How do I type unicode?

523


What are the advantages of encapsulation in java?

542


What is a literal coding?

504


What is a class variable?

558


How do you test a method for an exception using junit?

525


What is the intersection and union methods?

537


Can we overload the main() method?

540


What is the indent key?

581