Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

String API curiosity

807598Jan 12 2006 — edited Jan 12 2006
I just noticed the equalsIgnoreCase(. . .) method specifically takes a String object as its parameter
but the equals(. . .) method specifically takes an Object object as its parameter (which needs to be a String anyhow).
Anyone know the logic behind that difference?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2006
Added on Jan 12 2006
3 comments
99 views