How to create Java classes Dynamically by Java Reflection?

后端 未结 4 952
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-03 16:57

Reflection is used to load java class classes and manipulate them on the fly. But I have across a weird question that is asking me how to create Java classes on the fly by R

4条回答
  •  旧巷少年郎
    2021-01-03 17:14

    Maybe Apache DynaBeans will do. You can find some tutorials on creating and manipulating them eg. here: http://www.javaranch.com/journal/2003/07/TouringTheCommonsPart1.html

提交回复
热议问题