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 is the purpose of sizeof operator?
Is arraylist dynamic in java?
What happens if we override only equals?
How to remove the trailing spaces from a string?
Is call by reference possible in java?
Write a program to show whether a graph is a tree or not using adjacency matrix.
What is a line break?
What is not object oriented programming?
Explain implementation and how is it different from conversion?
What are the four pillars of java?
What is meant by bytecode?
Explain thread life cycle in java?
What is difference between public static and void?
What is a variable in java?
What are namespaces in java?