Why is string buffer better than string ?
Answer / Bhumika Kansal
"StringBuffer in Java is mutable, meaning it can be changed after creation. In contrast, String is immutable and cannot be modified once created. This makes StringBuffer more efficient when dealing with multiple modifications of a single string."
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a list in java?
What is instance means in java?
explain the clone method and clonable interface
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
How do u provide security in java
What do you understand by an io stream?
how to handle http request in struts
How does class forname work in java?
What is the final keyword?
What are different ways of object creation in java ?
Discuss 2D arrays.
Is call by reference possible in java?