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)
2.1m questions
2.1m answers
60 comments
57.0k users