 He attended the public schools and graduated from St. John's University.Hammer was a member of the New York State Senate (5th D.) from 1945 to 1948, sitting in the 165th and 166th New York State Legislatures.In November 1948, he ran for re-election, but was defeated by Democrat James F. Fitzgerald.