Question 1 of 25
Hints left: 3
Q1
What is the purpose of the `@WebInitParam` annotation in a servlet declaration?
Q2
What is the purpose of the `@WebServlet` annotation in a Java web application?
Q3
Which annotation is used to specify a custom error page for a specific exception type in a Java web application?
Q4
What is the purpose of the `@PreDestroy` annotation in Java EE applications?
Q5
What is the primary role of the `ServletContextEvent` class in Java web applications?
Q6
Which annotation is used to declare a filter in a Java web application?
Q7
What is the role of the `ServletContextListener` interface in Java web applications?
Q8
In a Java EE application, what is the role of the `@EJB` annotation?
Q9
What does the `@Singleton` annotation indicate in Java EE applications?
Q10
In a Java EE application, what is the primary role of the `@Stateless` annotation?
Q11
In a Java web application, what is the purpose of the `@ContextConfiguration` annotation?
Q12
What is the `web.xml` deployment descriptor used for in a Java web application?
Q13
In a Java web application, what is the purpose of the `@WebListener` annotation?
Q14
What is the primary purpose of the `@PostConstruct` annotation in Java EE applications?
Q15
What is the purpose of the `@Produces` annotation in Java EE applications?
Q16
In Java EE applications, what is the primary role of the `@MessageDriven` annotation?
Q17
Which annotation is used to specify a custom error page in a Java web application?
Q18
In Java EE applications, what is the purpose of the `@Resource` annotation?
Q19
In Java EE applications, what is the purpose of the `@PersistenceContext` annotation?
Q20
In a Java web application, what is the role of the `@MultipartConfig` annotation?
Q21
What is the purpose of the `@AroundInvoke` annotation in Java EE applications?
Q22
In a Java web application, what is the role of the `ServletContext` object?
Q23
"out" is implicit object of which class?
Q24
Which annotation is used to specify that a method should be invoked after a session is invalidated in a Java web application?
Q25
In Java web applications, what is the purpose of the `@RequestScoped` annotation?