This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
StringBuffer class doesnot override equals(). That is when we use equals() for StringBuffers, what is done is just reference comparasion - the behaviour inherited from Object class. Boolean and String classes override equals() method. Thus when two strings are compared - comparison is done for equality of string contents not thier handles. Shrinivas
Sun Certified programmer for Java2 platform.<BR>Shri_mk@hotmail.com