开发者

reflection java ? extends

开发者 https://www.devze.com 2022-12-16 20:06 出处:网络
Is there any difference between : Class<?> and Class<? extends Object&开发者_Python百科gt;?

Is there any difference between :

Class<?> and Class<? extends Object&开发者_Python百科gt; ?

Thanks


It is effectively the same


Nope. They are equivalent.


The same, 'cos every class extends Object.

It's analogous to saying

class MyClass

and

class MyClass extends Object

are the same thing.

0

精彩评论

暂无评论...
验证码 换一张
取 消