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

How listener identify that the event came from a particular object?

1468


What is the exact difference in between Unicast and Multicast object? Where will it be used?

580


What are thread local variables?

546


Name and explain the types of ways which are used to pass arguments in any function in java.

564


What are the advantages of assembly language?

496






How do I convert a string to an int in java?

547


What is functional interface in java example?

529


How can you read an integer value from the keyword when the application is runtime in java? example?

619


Is there any limitation of using inheritance?

569


How do you check whether the list is empty or not in java?

509


Why is multithreading important?

489


What is a variable analysis?

634


How to create an interface?

623


How to compare two strings in java program?

669


Write a java program that prints all the values given at command-line.

549