Both upper endoscopy and upper G.I. series are used to examine the esophagus, stomach, and duodenum.