Answer Posted / janet
1. String objects are constants and immutable where as
StringBuffer objects are not.
2.String class supports constant strings where as
StringBuffer class supports growable and modifiable strings.
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
How can you avoid serialization in child class if the base class is implementing the serializable interface?
What is regex used for?
What are the different types of data structures in java?
Why are generics used?
What is the purpose of a transient variable?
What is hash in java?
Tell me a few examples of final classes defined in Java API?
Is age a discrete variable?
What is a variable in java?
What is the difference between actual and formal parameters?
What is the buffer limit?
What is a blocking method in Java?
What are the types of literals?
What method is used to specify a container's layout in java programming?
What are the rules for variable declaration?