Answer
During the Spanish-American War, King was still attending the Naval Academy, but he was given a leave of absence to serve on the USS Gloucester, a gunboat that was sent to Cuba. King served on the Gloucester for three months, and during that time he participated in several engagements with the Spanish fleet. After the war, King returned to the Naval Academy and graduated in 1901.