text: When you don't know the class or method until you invoke it during runtime, you have no choice left out.  Here is where the reflections comes into play.\n\nYou can dynamically load a class and invoke a method which is not compile time binded.  For that you have to use the Class.forName(<classname with full package>).\n\n\nTo read more on this...\nhttp://www-128.ibm.com/developerworks/java/library/j-dyn0610/