Quine Java Class

Quine Java Class

Quines are programs that output their own source code without any input. Among other things, they emphasize the vagueness of the line between code and data. Here is a variation on the concept: a Java source that, when compiled, produces a class file that outputs its own binary copy. Tested with Oracle JDK 1.8 on OS X and Linux.

Feedback (pun intended) appreciated.

”I will come back to you" said the recursion and jumped down the stack frame. :)

To view or add a comment, sign in

More articles by Cornel Izbasa

  • Expert cryptographer and social engineer comes up with "unbreakable password"

    Afford Prefect, native and still inhabitant of Milwaukee, Wisconsin, took the crypto world by storm with his discovery…

    1 Comment
  • A Mostly Altruistic Many-Worlds Interpretation Science Experiment

    I entertain the idea that if we keep performing quantum physics experiments where branching would occur according to…

  • AI and the Midas Touch

    This article is inspired by the analogy made by Stuart Russell between the problem of ensuring AI alignment and the…

  • Proof-Caring Code

    Design by Contract, Meet Symbolic Execution! So I have this idea of using Design by Contract for the C language in a…

  • Finding Hamiltonian Cycles with KLEE

    Graphs are black, Cycles are red, KLEE's not a hack, So use it instead. C: http://pastebin.

  • Finding MagicK with KLEE

    If by now you're not convinced that KLEE heralds the coming of the Singularity, check out how it finds a magic square…

  • Solving 8-Queens with KLEE

    You might already know that I'm in <3 with KLEE for a while and just waiting for the right time to propose. So, without…

  • KLEE, the involuntary base64 decoder

    It is not by chance that I use the term involuntary instead of incidental, because this lil' piece of software has…

    3 Comments
  • Solving Einstein's Enigma with KLEE

    ..

    3 Comments
  • Coder (to the tune of Dreamer by Ozzy Osbourne)

    Gazing to my window at the code inside, Wond'rin' will the pull request survive, My feature branch be merged to master…

Explore content categories