The professor told John that he passed the exam.

Who is he referring to in this sentence?
John