Working on a requirement where i need to call a class Method based on the name of the class and method being provided at runtime.
What are the different way by which i can achieve this (preferred one).One issue which i can see is that there can be multiple classes with same name so that can create a problem.
Any inputs how best this can be done will be much helpful for me
Thanks in advance
You have to use the fully qualified class name with its package, which is unique for a ClassLoader.
You need to know the parameters types otherwise you can’t give it sensible values when you call it.