in reply to
classical one was:
Classical ones are on the Quine page (which is apparently not maintained anymore).
The shortest non-empty non-cheating one I know is (ends with two newlines)
Another that uses perl's various quoting operators to avoid having to escape stuff dynamically is (no newline)
Update: see Short quines.
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (144 votes),