Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Diff Between String and String Buffer  RSS feed

 
PhaniKiran Patruni
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
What is the Difference between String and StringBuffer
basically String Buffer appends to the existing String itself...in addition to this what more differences do we have
any ideas pl
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think it is a question of memory use !
everytime you use + you allocate a new string ...
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is really more of a Java in General: Beginner question, so I'm moving it there...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!