Wildcards
If needed a wildcard generic type, which accepts any type, can be used:
Bounds
This is an upper bounds wildcard:
Which accepts Number and it subclasses.
This is an lower bounds wildcard:
Which accepts Number and it super-classes.
Last updated
Was this helpful?