Question 1 of 25
Hints left: 3
Q1
In Java Servlets, what is the primary function of the `RequestDispatcher` interface?
Q2
In Java Servlets, what is the purpose of the `HttpServletRequest` object?
Q3
Which HTTP method is typically used for retrieving data from a server in Java Servlets?
Q4
What is the role of the `HttpServletResponse` object in Java Servlets?
Q5
What is the purpose of the `web.xml` `` element in a Java web application?
Q6
In Java Servlets, what is the purpose of the `ServletContext` object?
Q7
What is the purpose of the `init-param` element in the `web.xml` file of a Java web application?
Q8
What is a servlet container in Java web applications?
Q9
Which of the following is a valid method in the `HttpServlet` class in Java?
Q10
Which of the following is true about session tracking in Java Servlets?
Q11
Which one of the following contains date information?
Q12
What is the purpose of the `web.xml` file in a Java web application?
Q13
Which Java package contains the core classes and interfaces for servlets?
Q14
What is the purpose of the `doPost()` method in Java Servlets?
Q15
What is a servlet in Java?
Q16
What is the role of the `init()` method in Java Servlets?
Q17
Which HTTP method is used for updating data on the server in Java Servlets?
Q18
In Java Servlets, what is the purpose of the `HttpServletRequestWrapper` class?
Q19
In Java Servlets, what is the purpose of the `doFilter()` method in the `Filter` interface?
Q20
Which of the following is NOT a standard HTTP status code in Java Servlets?
Q21
What is the role of the `HttpSession` interface in Java Servlets?
Q22
Which of the following is true about session management in Java Servlets?
Q23
What is the purpose of the `context-param` element in the `web.xml` file of a Java web application?
Q24
What does the term "URL mapping" refer to in Java Servlets?
Q25
Which of the following is true about servlet containers (e.g., Tomcat)?