What was the difference between Adams and Hamilton?

though both of them were apart of the whig party, they differed in matters of foreign policy. Hamilton refused to back Adams when he ran for President because of this.