What is the only way to know if a hamburger is cooked to the correct internal temperature?

A. Look at the color and if it is not pink, then it is ok to eat. B. Smell it. C. Eat a little piece of it and it tastes good, then go ahead and eat it. D. Use a meat thermometer to measure the internal temperature.

D. Use a meat thermometer to measure the internal temperature.