Is it possible to save a Java Class<?> file?

class, java, serialization

Solution

Have you gone through concept of serialization using java. this link will help you on your problem.

In short Java.lang.Serializable is your friend to do this.

Problem

I've had a look around but nothing seems to quite cover what I wish to do. Is it possible to save a `Class<?>` instance object at run-time? If so how would I go about doing it?

Original source