Which of these professionals specializes in diagnosis, treatment, and prevention of mental illnesses and can prescribe medicine?
A.neurologist
B.psychologist
C.counselor
D.psychiatrist