Results 1 to 1 of 1
Thread: Execution methods – Reflection
-
Execution methods – Reflection
One can call methods using reflection at run time. It is a powerful feature which gives Java a huge edge over other programming languages.
Java Code:Countries obj = new Countries(); Class c = Class.forName("Countries"); Method method = c.getMethod("methodName"); method.invoke(obj);
Similar Threads
-
Using reflection to create, fill, and display an array
By Java Tip in forum java.langReplies: 0Last Post: 04-14-2008, 08:43 PM -
Getting class field information using Reflection
By Java Tip in forum Java TipReplies: 0Last Post: 01-24-2008, 03:20 PM -
Getting method names using Reflection
By Java Tip in forum Java TipReplies: 0Last Post: 01-24-2008, 03:18 PM -
Getting methods of a Class - Reflection
By Java Tip in forum Java TipReplies: 0Last Post: 11-15-2007, 03:18 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks