What is the difference between and Java?

See English answers > What's the difference between and in Java Generics? 3

I have implemented the generic stack using the above two methods, but I can't find the difference Help me understand this

Solution

No difference< T> And < T extends Object > are equivalent

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>