what is mutability?which one is mutable String or StringBuffer?and why?give
examples of each which shows the mutability of each String or StringBuffer
Answer Posted / surya simhadri
Mutability means which can be changed. StringBuffer is a
mutable bcoz the contents of the SB object we can change,
it can't create new reference location even though we
change the value it already referenced. But in case of
String it reference location is changed every time if u
change the content.
| Is This Answer Correct ? | 58 Yes | 2 No |
Post New Answer View All Answers
Explain the pointers in Java?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
what do you understand by synchronization? : Java thread
What is a return in java?
Is it necessary for the port addresses to be unique? Explain with reason.
What is stringreader?
What is variable explain with example?
Explain inheritance in java?
Can java run on google chrome?
Explain the protected field modifier?
What about instanceof operator in java?
Which collection is best for sorting in java?
how to write a server program and sending the mails to the server using smtp protocol please help me
Explain about arraylist?
What do you mean by light weight and heavy weight components?