mercredi 8 novembre 2017

How to create a Java Class Object from a class string definition

I was trying to create a Java class obj from following class string representaion.I would like to know that is it possible to do this. Appreciate any ideas.

String dynamicClassString= "class SampleClass{
 private name;
 private age;
 //gettter and setters

}"

Requirement

new SampleClass();





Aucun commentaire:

Enregistrer un commentaire