
The joke about immortality also appears in On Being Funny (1975)
In an interview in Rolling Stone magazine from April 9, 1987, Allen said "Someone once asked me if my dream was to live on in the hearts of people, and I said I would prefer to live on in my apartment."
Source: The Illustrated Woody Allen Reader (1993)