Is there a way to make a quine in java, then have some sort of program recognize the output as a program, then run that and give an output, and keep on doing so infinitely? I'm trying to write a self-replicating code and get it to infinitely reproduce itself, thereby technically creating life. I have a superiority complex, I suppose
Here's an article that should assist you in your initial research:
Meta-programming -Write programs that generate other programs
This wiki page can also point you to additional sources of information. wiki
Hope this helps you in your learning!