Since you are trying to learn, think what the type of input can be (i.e: things can be assigned to -> List<E>) and what the type of the output should be (i.e: to what we can assign a return type of List<? super E>) given <E extends Number> satisfies.
Welcome to JavaRanch!!!
I think this question is asked before and well discussed............
In fact many questions we ask are mostly already asked..........You should get it if you search this same forum
I'll see if I can get it and post the link if possible..........
Giffy Geraldo wrote:If we take q1 as <Number> then q2 can be <Number> too. So will not the assignment be a valid one.
But will that be always true? If q1 actually refers to an object of generic type LinkedList<Float> (which is perfectly all right) is it possible to assign that object to a reference of type Queue<? super Integer> (which permits only Integer or any super type) ? That's wrong right?
You can think about the other query which can by thought in the same way. Hope you get it