File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Joined: Oct 02, 2003
Jan 12, 2004 05:15:00
Does anybody know why StringBuffer class doesn't override
Author and all-around good cowpoke
Joined: Mar 22, 2000
Jan 12, 2004 09:36:00
Probably because it would make for confused programming.
Since the contents could be modified after storing the StringBuffer in a collection, the identity equals is what you want, not a content based one.
I agree. Here's the link:
using string value as a variable name
StringBuffer and equals()
number of objects created
had a question about string equals method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014