Which of the following can be classified as both an endocrine gland and an exocrine gland?

The pancreas.