Java Server And Servlet - Study Mode
[#56] Which class represents an Internet Protocol address?
Correct Answer
(A) InetAddress
[#57] What happens if IP Address of host cannot be determined?
Correct Answer
(B) UnknownHostException is thrown
[#58] What is a servlet in Java?
Correct Answer
(A) A Java program that runs on the server to handle client requests
[#59] Which of the following is a valid method in the `HttpServlet` class in Java?
Correct Answer
(D) `doGet()`
[#60] What is the purpose of the `web.xml` file in a Java web application?
Correct Answer
(C) To configure servlet mappings and other web application settings