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 |
Should a main method be compulsorily declared in all java classes?
What do you mean Abstraction in java?
When object is created and destroyed?
Is 9 a prime number?
Explain the difference between abstraction and encapsulation.
how does multithreading take place on a computer with a single cpu? : Java thread
How do I convert a string to an int in java?
What is collections framework?
how to java plateform independent?
What does snprintf return?
Which is better singleton or static class?
How to implement Singleton