John Hildreth Forshew, 82, a retired captain in the Navy Reserve who served in two world wars, died of cardiac arrest Sunday at his home in Washington.

Capt. Forshew was born in New York City and graduated from the U.S. Naval Academy in 1917. He served on battleships during World War I. In the years following the war, he commanded submarines stationed at New London, Conn.

He left active duty in 1929 and five years later joined the Standard Oil Co. in the Washington-Baltimore area.

About 1940, he went back on active duty in the Navy. During World War II, he commanded a division of destroyer escorts. He retired from the service about 1948. He returned to Standard Oil and remained with that company until his second retirement in the late 1950s.

Capt. Forshew, who had maintained his residence in the Washington area since 1934, was a member of the Naval Academy Alummi Association and was secretary of the Class of 1917. He also was a member of the Army & Navy Club in Washington. He was a member of the Society of Mayflower Descendants.

Survivors include a stepson, William T. Davies, of Chincoteague, Va.; a sister, Adriaan Gips, of a New York City; one granddaughter, and one great-granddaughter.