title: 在java中t.getClass()为什么返回的是Class<?>而不是Class<T>呢？
desc: <div class
topic: Java
content: 首先看文档： Object Java Platform SE 8 getClasspublic final Class<> getClassReturns the runtime class of this Object. The returned Class object is the object that is locked by static synchronizedmethods of the represented class.The actual result type is Class< extends X> where X is the erasure of the static type of the expression on which getClass is called. For example， no cast is re
answerer_tags: 软件工程师、主攻高级编程语言虚拟机的设计与实现