Check if the superclass is an Object

Posted by kunjaan on Stack Overflow See other posts from Stack Overflow or by kunjaan
Published on 2010-05-31T21:41:11Z Indexed on 2010/05/31 21:43 UTC
Read the original article Hit count: 169

Filed under:
|

I use

if (clazz.getSuperclass().getName() == "java.lang.Object")

Is there a better way?

© Stack Overflow or respective owner

Related posts about java

Related posts about reflection