Check if the superclass is java.lang.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:53 UTC
Read the original article Hit count: 183

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