Home > Software > Java > Core-Java
Interview Questions   Tutorials   Discussions   Programs   

Core-Java - Difference between String & String Buffer?




307
views
asked marvit August 16, 2014 10:25 AM  

Difference between String & String Buffer?


           

1 Answers



 
answered By bhjahnavi   0  
string class objects are immutable and hence their contents cannot be modified . StringBuffer class objects are mutable ,so they can be modified .moreover the methods that directly manipulated data of the object are not available in string class.such methods are available in StringBuffer class.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert