John Fitzgerald "Jack" Kennedy (May 29, 1917 – November 22, 1963), commonly referred to by his initials JFK, was an American statesman who served as the 35th President of the United States from January 1961 until his assassination in November 1963. Kennedy served at the height of the Cold War, and much of his presidency focused on managing relations with the Soviet Union. He was a member of the Democratic Party who represented Massachusetts in the United States House of Representatives and the United States Senate prior to becoming president. 

Kennedy was born in Brookline, Massachusetts, to Joseph P. Kennedy, Sr. and Rose Kennedy. A scion of the Kennedy family, he graduated from Harvard University in 1940 before joining the United States Naval Reserve the following year. During World War II, Kennedy commanded a series of PT boats in the Pacific theater and earned the Navy and Marine Corps Medal for his service. After the war, Kennedy represented Massachusetts's 11th congressional district in the United States House of Representatives from 1947 until 1953. He was subsequently elected to the U.S. Senate and served as the junior Senator from Massachusetts from 1953 until 1960. While serving in the Senate, he published "Profiles in Courage", which won the Pulitzer Prize for Biography. In the 1960 presidential election, Kennedy narrowly defeated Republican opponent Richard Nixon, who was the incumbent Vice President.
when did he graduate?
he graduated from Harvard University in 1940