Servlet 3.0 has introduced javax.servlet.annotation that provides annotation types, which can annotate servlet classes. Annotation also represents metadata. So, if you are using annotation, you may not require deployment descriptor.

Note: This is very essential java servlet interview questions which is asked in every interviews.

Suggest An Answer

No suggestions Available!