Jerome David Salinger grew up in New York in an upper class family of means. He was sent to a private preparatory school which he failed out of and then attended a military academy. Other evidence of the author found in the book comes in the form of Holden's isolation from society. Salinger is a recluse.
Salinger is reportedly locked away in some bunker still writing novels that no one is allowed to read. It is suggested in literary gossip circles that there is a treasure of Salinger's work stored up somewhere that will be released after his death.
In The Catcher in the Rye, the author is present in both the character of Holden and the older brother D.B who is a writer. It is not hard to imagine that the next step for Holden, after he gets out of the mental institution is a military school.
While J.D. Salinger has always been closed about his life, we do know that he was also kicked out of several prepatory schools like Holden in the novel. He also had a sister, although she was older, who could have been reflected in the character of Phoebe.
I Think That he went through some Tough Times and he decided to make a novel about some of the things he went through maybe he was the person that got beat up by a guy named Maurice and maybe he was a virgin and he wanted to get laid !