Is there a way programmitcally to tell if a Java class is abstract? (Other than trying to instantiate and catching the error) Thanks!
+11
A:
You can use reflection:
if (Modifier.isAbstract(FooBar.class.getModifiers())) {
// ...
}
Chris Jester-Young
2010-02-12 18:08:34