Generic wildcard<? Extends T>is used to receive the returned data. Generic collections with this notation cannot use the add method, while<? Super T>cannot use the get method, as it is prone to errors when assigning values as an interface call.
Explanation: To elaborate on the PECS (Producer Extend Consumer Super) principle:
For those who frequently read content outside, it is suitable to use upper bound extends.
Often inserted, suitable for using the lower bound Super.
A few specific examples (note: java.util.java is the parent class of java.sql.Timestamp)