posted 14 years ago
when I do
public void testMethod(List<? extends Account> accts) {
}
the argument is "<? extends Account>" . I know it takes List of the objects of sub classes of "Account". Does it take a List of "Account" objects ? I passed a list of objects of "Account' type and it doesn't complain in compiler but it gave me problem at run time. Basic question is --- Can I pass a list of objects of "Account" ??