Annotations are introduced in java 1.5 and the same annotation processing technique has been implemented in servlets to support annotations for configuring and other process. This reduced the burden of configuring xml files and more. For example @WebServlet,@InitParam etc.
No pain, No gain.
OCJP 1.6, Liferay Certified Developer 6.1