Barack Obama may be perceived to be relatively inexperienced on foreign policy, particularly in comparison to John McCain.