Difference between the String and StringBuffer classes?
Answer Posted / latha
String is immutable and StringBuffer is mutable as most of
we know. In performance, StringBuffer is faster than the
String while performing simple concatenations.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What will happen if static modifier is removed from the signature of the main method?
What does opcode mean?
Can an unreferenced object be referenced again?
Which collection is ordered in java?
Why should we use singleton pattern instead of static class?
Is alive and join method in java?
Is java a compiler?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
What are keyboard events?
What is the difference between compare and compareto in java?
What is static variable with example?
What is the use of arrays tostring () in java?
What is bubble sort in java?
What is the similarity between dynamic binding and linking?
What is abstract class? Explain