File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Calling static methods using Reflection
Joined: Mar 07, 2001
Dec 07, 2001 22:45:00
How do I call a static method using Reflection
Joined: Jul 27, 2001
Dec 08, 2001 14:15:00
In Method.invoke(), just pass null instead of an instance.
I agree. Here's the link:
subject: Calling static methods using Reflection
Calling Superclass version of an Overridden Method
Finding field defined in parent class
dynamically set data via setters at run time
Anonymous class doubt
How to locate a class without knowing its package
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014