我还是不懂 最好能解释得再清楚一点。最好能举个例子说明 object.getclass() 的使用。jdk 1.3 文档getClass public final Class getClass() Returns the runtime class of an object. That Class object is the object that is locked by static synchronized methods of the represented class. Returns: the object of type Class that represents the runtime class of the object.
最好能解释得再清楚一点。最好能举个例子说明 object.getclass() 的使用。jdk 1.3 文档getClass
public final Class getClass()
Returns the runtime class of an object. That Class object is the object that is locked by static synchronized methods of the represented class.
Returns:
the object of type Class that represents the runtime class of the object.