What is reflection, and why is it useful?
I'm particularly interested in Java, but I assume the principles are the same in any language.
home / developersection / forums / what is reflection and why is it useful?
What is reflection, and why is it useful?
I'm particularly interested in Java, but I assume the principles are the same in any language.
Anonymous User
16-May-2015Method method = foo.getClass().getMethod("doSomething", null);method.invoke(foo, null);