1.

How Can We Get All Public Methods Of An Object Dynamically?

Answer»

getMethods(): It return an array of method OBJECTS CORRESPONDING to the public METHODS of this class.

GETFIELDS(): It returns an array of Field objects corresponding to the public Fields (variables) of this class.

getConstructors: It returns an array of constructor objects corresponding to the public CONSTRUCTORS of this class.

getMethods(): It return an array of method objects corresponding to the public methods of this class.

getFields(): It returns an array of Field objects corresponding to the public Fields (variables) of this class.

getConstructors: It returns an array of constructor objects corresponding to the public constructors of this class.



Discussion

No Comment Found