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