I have two Strings:
String a=\"org.test.A\"; String b=\"org.test.B\";
I get a class by Reflection
Class aClass = Class.forN
Generally speaking you want to be able to create new classes (not objects) at runtime. You can use bytecode engineering or java compiler api for that.