all i wanted is to call a 1)class at runtime 2)create an object of it and 3)call any method of it at runtime
See for example i want to call concat method of String class here is what i did :
But the problem here is c1=String.class using this iam kinda of declaring the method arguments.Is there any way to create argument types to methods at runtime. Thanks -Badri [ December 10, 2006: Message edited by: Badri Narayanan ]
posted 9 years ago
Yes, you can use Class.forName(), the same way you did for the first class you got (from args).