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 performance implications of interfaces over abstract classes?
What is time complexity java?
what is the form of storage space in java?
Explain the scope or life time of class variables or static variables?
What is linked hashmap and its features?
can we add two numbers without using arthematic operators? if possible how?
Can an exception be rethrown?
How do you create a null object?
why Java does not support multiple inheritances?
What is the difference between dom and sax parser in java?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?