Difference between String and StringBuffer.
Answer Posted / madhu
string is imutable and stringbuffer is mutable
Mutable means storing location is same
Imutable means storning location is different
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is boolean used for?
What are the states of thread in java?
Why char array is preferred over string for storing password?
Is an object null?
Explain the use of shift operator in java. Can you give some examples?
What is variable in java?
Can a class be protected in java?
How does indexof work?
What are the different data types in java?
What do you mean by jjs in java8?
What happens when a thread cannot acquire a lock on an object in java programming?
What is java util hashmap?
What is a local class in java?
Explain scope or life time of local variables in java?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?