Another way to say "cannons are mounted on military ships" is "Military ships can have cannons."