what is the difference between String and StringBuffer classes?
Answers were Sorted based on User's Feedback
Answer / kishore cheruku
a) String objects are constants and immutable whereas StringBuffer objects are not. b) String class supports constant strings whereas StringBuffer class supports growable and modifiable strings.
| Is This Answer Correct ? | 23 Yes | 0 No |
Answer / tarun choudhary
The String class is used for strings that are not allowed to change. The StringBuffer class is used for strings that may be modified by the program.
| Is This Answer Correct ? | 15 Yes | 0 No |
What are the names of interfaces that doesn't consists of method/s ?
What is "this" keyword in java? Explain
What is a line break example?
Why all programming languages have main as a execution starting point?
What is assembly condition codes?
Explain differences between checked and unchecked exceptions in java?
What do you mean by a JVM?
Why strings in java are called as immutable?
How big is a pointer?
What is a boolean structure?
What is the difference between an if statement and a switch statement?
What is a class object?