File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Calling static methods using Reflection" Watch "Calling static methods using Reflection" New topic
Author

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Calling static methods using Reflection
 
jQuery in Action, 3rd edition