Prev Next

Java / Generics

Can you pass List<Number> to a method which accepts List<Object>?

No. We encounter compilation error as it is incompatible.

More Related questions...

Show more question and Answers...


Comments & Discussions