Difference between String & StringBuffer
Answer Posted / kunal chwala
It means that we cant change the content of String once created. If we try append a new string using + operator
then it creates new String object.
ex.
Is This Answer Correct ? | 13 Yes | 5 No |
Post New Answer View All Answers
What is the difference between access specifiers and access modifiers in java? 16
what is synchronization and why is it important? : Java thread
What is widening and narrowing in java? Discuss with an example.
What do u mean by variable?
What is the purpose of garbage collection in java? When is it used?
What is immutable class in java?
How can we pass argument to a function by reference instead of pass by value?
What is the final class modifier?
When should the method invokelater() be used?
Difference between arraylist and hashset in java?
How does arrays sort work in java?
What is ternary operator? Give an example.
Why strings in java are called as immutable?
What occurs when an object is constructed?
What is the difference between a break statement and a continue statement?