John J. Haferman, 64, a supervisor in the public works department of the U.S. Navel Academy in Annapolis and a commissoner of the Maryland Bureau of Indian Affiars, died at Anne Arundel General Hospital in Annapolis Monday following a heart attack.

Mr. Hafferman, a Kiowa Apache Indian, was born in Washington and attended St. Joseph's Catholic School here. In 1939, he went into the merchant Marine and became a seaman-electrician. He served in the merchant Marine through World War II and retired in 1965.

At that time, he joined the staff of the Naval Acadeny and continued his work there until his death.

Mr. Hafferman gave classes on American Indian customs and lore in the Anne Arundel County public schools. He also was head of the Tribal Council of Native American Indians in Maryland. He was a member of the Human Relations Commission for Anne Arundel County.

In 1979, Gov. Harry Hughes appointed Mr. Hafferman to the commission of the Maryland Bureau of Indian Affiars.

Mr. Hafferman's survivors include his wife, Tine, of Riva, Md., where the family lives; a son, John, of Londontown, Md.; a daughter, Chantal, of Selby-on-the-Bay, Md., and one granddaughter.