Which of the following is both endocrine and an exocrine gland? A. Gastric glands B. Thyroid glands C. Pituitary glands D. Pancreas