While reading The Catcher in the Rye, I realized Holden Caulfield reminds me of the narrator in Dostoevsky's Notes from Underground, a short novel delving into the psyche of an egomaniacal civil servant in 19th century Russia.
The two characters have different backgrounds. Their surrounding environments are similarly distinct. Yet they express analogous mental and material qualities; swings from smug narcissism to self-loathing in disturbingly short amounts of time, social alienation, professional/academic failure, vanity, loneliness. They carry overwhelming spite for a society they can neither succeed in nor live without.
I asked one of my philosophy professors about this relation. For his class I read Notes from Underground. He sent me this paper by Lilian Furst on the topic. It's a really good analysis. She points out the parallels in form as well as content between the two works. Both are first person narratives with a conversational, rambling tone set by an untrustworthy and contradictory speaker. The reader quickly becomes aware that she is being lied to. The perspective she sees is clearly through deluded eyes.
In Furst's words:
"The Underground Man and Holden Caulfield alike oscillate between solipsism and irony, hope and indifference, the grotesque humour of detachment and the bitterness of lost illusions. The underlying conflict is between the self-esteem that devolves from their proud sense of their own pre-eminence over the average man in intellect and sensitivity on the one hand, and on the other the self-denigration that drives them masochistically to magnify their physical defects and almost gloat over their failures."