Which of the following is both endocrine and exocrine gland?

Which of the following is both endocrine and exocrine gland?

A. thyroid


B. pancreas


C. parathyroid


D. all of these