Which is better stringbuilder or stringbuffer?
Answer / Hariram
StringBuilder and StringBuffer in Java are similar, but StringBuilder is generally preferred over StringBuffer for performance reasons. StringBuilder is faster because it is not synchronized, while StringBuffer is synchronized by default.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to split a string in java?
What is casting?
What is a class object?
What is the maximum size of hashmap in java?
Where the CardLayout is used?
worst case complexities of Quick sort and Merge sort.
Can you give few examples of final classes defined in java api?
Define iterator and methods in iterator?
Difference between nested and inner classes ?
What data type is a string?
What is a java developer salary?
Why array is used in java?