How to count the number of attributes of a java class? -


could explain me, how possible count number attributes of java class. need generic way, since classes can have different number of attributes. possible in java?

field[] attributes =  myclass.class.getdeclaredfields(); 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -