View Single Post
  #2  
Old 08-21-2007, 08:26 AM
Venkat Venkat is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 347
Venkat is on a distinguished road
Thumbs up Re: Java/J2EE interview Questions

what is the difference between StringBuilder and StringBuffer class?

It is very much similar to StringBuffer except for one difference: it is not synchronized,which means that it is not thread-safe. The advantage of StringBuilder is good performance.In case of multithreading, you must use StringBuffer rather than StringBuilder.
__________________
Venkat
knowledge is Power
Reply With Quote