SpiceQA
Questions
Tags
Users
Badges
How to test if one java class extends another at runtime?
user_243164
0
Created Aug 17, 2010
Edited Aug 17, 2010
Viewed 101154
Follow
How to I test if
a
is a subclass of
b
?
Class<?> a = A.class; Class<?> b = B.class;
class-hierarchy
instanceof
subclass
java
155
0
Add comment
+
Share
3 Answers
Related