Retired Navy Capt. Bryan Bailey Brown Jr., who was an aviator, a test pilot and the executive officer of the U.S. Naval Academy at Annapolis in the course of his career, died of cancer Saturday at the Bethesda Naval Medical Center.

Capt. Brown was born into an Army family in Honolulu, Hawaii, and grew up at various military posts. He graduated from the Naval Academy in 1947 and later became a flyer. In 1956, he earned a degree in electrical and aeronautical engineering at the Massachusetts Institute of Technology.

Capt. Brown later was a test pilot at the Patuxent Naval Air Station, commanded a squadron of fighter bombers and was executive officer of the aircraft carrier Ranger.

He was executive officer of the Naval Academy in 1968. In 1970, he was given command of the hospital ship Sanctuary stationed off Vietnam. A year later, he was assigned to the Office of the Secretary of Defense. His last post before his retirement in 1976 was an assistant deputy chief for Navy materiel at the Naval Materiel Command in the Navy Department.

Capt. Brown was a graduate of the Naval Postgraduate School at Monterey, Calif., and of the Armed Forces Industrial College at Fort McNair in Washington. His decorations include two awards of the Legion of Merit.

A resident of McLean since 1970, Capt. Brown's survivors include his wife, Donica A. Brown, of McLean; one son, Raleigh V., also of McLean; four daughters, Mary C. Dorsey, of Herndon, Alisa, of Fairfax, Nancy C., of Falls Church, and Laura A., of McLean; his mother, Josephine M. Brown, of Heraldsburg, Calif.; a sister, Beatrice Gibbons, of Vallejo, Calif., and one grandchild. Another son, Bryan, died in 1976.

The family suggests that expressions of sympathy be in the form of contributions to the American Cancer Society.