Why are strings immutable in Java? How is StringBuffer different from String Builder? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

Why are strings immutable in Java? How is StringBuffer different from String Builder?

Please provide a detail answer.

4th Jul 2017, 11:12 AM
Uday Kumar Gandham
Uday Kumar Gandham - avatar
1 Resposta
+ 6
Strings are immutable because java's creator James Gosling wanted it.........šŸ˜ƒšŸ˜ƒšŸ˜ƒ now forthe second part of your answer ->https://stackoverflow.com/questions/355089/difference-between-stringbuilder-and-stringbuffer
4th Jul 2017, 3:38 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar