Is there a way programmitcally to tell if a Java class is abstract? (Other than trying to instantiate and catching the error) Thanks!
You can use reflection:
if (Modifier.isAbstract(FooBar.class.getModifiers())) {
    // ...
}
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With