What is the role of the `HttpServletResponse` object in Java Servlets?
A. To execute SQL queries
B. To create JavaBeans
C. To manage JavaBean properties
D. To encapsulate the response sent to the client
Answer: Option D
A. To execute SQL queries
B. To create JavaBeans
C. To manage JavaBean properties
D. To encapsulate the response sent to the client
Answer: Option D
A. A Java program that runs on the server to handle client requests
B. A type of coffee bean
C. A Java class used for file I/O
D. A Java keyword
Which of the following is a valid method in the `HttpServlet` class in Java?
A. `handleRequest()`
B. `runServlet()`
C. `execute()`
D. `doGet()`
What is the purpose of the `web.xml` file in a Java web application?
A. To define JavaBean properties
B. To execute SQL queries
C. To configure servlet mappings and other web application settings
D. To create JavaBeans
In Java Servlets, what is the purpose of the `HttpServletRequest` object?
A. To create JavaBean properties
B. To encapsulate the client's request information
C. To manage JavaBean events
D. None of These
Join The Discussion