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 -

How do you convert a timestamp into a datetime in python with the correct timezone? -