Doubt in Java Collection Framework

Hi all,

From the release of jdk1.5, the Collection interface in java.util package has been modified to take Generic arguments. That is the add method's signature is

public boolean add(E o);

Then why still the method remove is taking the parameter as Object?

public boolean remove(Object o);

Thanks in advance!

dinesh.

[361 byte] By [V.Dinesha] at [2007-10-3 9:12:23]
# 1
It's not a "Doubt". It's a "Question".
bckrispia at 2007-7-15 4:24:38 > top of Java-index,Java Essentials,New To Java...