Examveda

Which annotation is used to specify the URL pattern for a servlet in a Java web application?

A. `@WebServlet`

B. `@WebFilter`

C. `@WebListener`

D. `@RequestMapping`

Answer: Option A


Join The Discussion

Related Questions on Application Lifecycle and Annotation