devxlogo

August 15, 2018

Avoid Poor Use of Reflection

Class beanClass = ???If (beanClass.newInstance() instanceof TestBean) ??? The above code is tries to use the reflection API, it tries to find a way to check for inheritance, but it