The most simplest way to invoke a method in java dynamically using reflection.
new java.beans.Expression(target,”methodName”,args).getValue()
where target is the target object. args is an object array containing arguments.
javadoc states that “when the target’s class defines many methods with the given name the implementation should choose the most specific method using the algorithm specified in the Java Language Specification (15.11)”. This is a huge advantage.