Infosys interview question

Difference between XML and Annotation based configuration?