How to I test if a is a subclass of b?
a
b
Class<?> a = A.class; Class<?> b = B.class;
Are you looking for:
Super.class.isAssignableFrom(Sub.class)
1.4m articles
1.4m replys
5 comments
57.0k users