Given that class loaders accept to take as input a byte array of a given class, returning a Class>, I wonder whether it is possible to do the reverse, t
Class>
No standard way I know of. But you might implement your own delegating classloader, keeping track of classes loaded in terms of name and bytecode.
What would be your use case? - Transferring code to a remote application?