posted 14 years ago
No they are not the same. See the difference with extends and super.
With q1 there is an guaranty that all the elements are a Number or a subclass of it.
So you can retrieve elements like this:
With q2 there is an that the queue can hold elements of type Integer and subclasses of it.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.