This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
The StringBuffer class in jdk 1.5 is now extending to the AbstractStringBuilder class. So can any1 plz help me out in using the AbstractStringBuilder class. How to implement this class & what all changes needs to be done in the code where StringBuffer class is used?
Regards, - Neha [ November 27, 2004: Message edited by: Neha D ]
Both StringBuffer and StringBuilder extend from Object, as shown at the top of their api. The difference is summarized in the first paragraph of the StringBuilder api: they are pretty much the same except for synchronization. The StringBuilder api recommends we use StringBuilder when the buffer is being used by only one thread and suggests that this will generally give better performance. So I would say use StringBuilder in the same way you use StringBuffer, and only when thread safety is not an issue.