When you call remove(object o) on an arraylist, how does it compare objects?

Posted by Thomas.Winsnes on Stack Overflow See other posts from Stack Overflow or by Thomas.Winsnes
Published on 2010-05-24T03:40:24Z Indexed on 2010/05/24 3:50 UTC
Read the original article Hit count: 268

Filed under:
|
|
|

When you call remove(object o) on an arraylist in java, how does it compare the objects to find the correct one to remove? does it use the pointer? or does it compare the objects using the interface Comparable?

© Stack Overflow or respective owner

Related posts about java

Related posts about remove