aspose file tools*
The moose likes Beginning Java and the fly likes Calling static methods using Reflection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Calling static methods using Reflection" Watch "Calling static methods using Reflection" New topic

Calling static methods using Reflection

Alok Pota
Ranch Hand

Joined: Mar 07, 2001
Posts: 185
How do I call a static method using Reflection
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
In Method.invoke(), just pass null instead of an instance.
I agree. Here's the link:
subject: Calling static methods using Reflection
Similar Threads
dynamically set data via setters at run time
Anonymous class doubt
How to locate a class without knowing its package
Finding field defined in parent class
Calling Superclass version of an Overridden Method