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 |
Compare Mutex and Semaphore in java.
Can you pass functions in java?
What is final access modifier in java?
can any one tell me what is advantage of encapsulation
What about instanceof operator in java?
What is unmodifiable list in java?
What is static synchronization?
What is oop in java?
How to create an immutable class?
What is the Scope of Static Variable?
what do you mean by classloader?
v-model life cycle