OOPS
August 25, 2024OOPS
August 25, 2024OOPS
Question 151
|
Match the following interfaces of Java. Servlet package :
List – I List – II
a. Servlet Config i. Enables Servlets to log events
b. Servlet Context ii. Read data from a client
c. Servlet Request iii. Write data to a client
d. Servlet Response iv. To get initialization parameters
a-iii, b-iv, c-ii, d-i
|
|
a-iii, b-ii, c-iv, d-i
|
|
a-ii, b-iii, c-iv, d-i
|
|
a-iv, b-i, c-ii, d-iii
|
Question 151 Explanation:
Servlet Config: A servlet configuration object used by a servlet container to pass information to a servlet during initialization.
Servlet Context : Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.
Servlet Request: Defines an object to provide client request information to a servlet.
Servlet Response: Defines an object to assist a servlet in sending a response to the client.
Servlet Context : Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.
Servlet Request: Defines an object to provide client request information to a servlet.
Servlet Response: Defines an object to assist a servlet in sending a response to the client.
Correct Answer: D
Question 151 Explanation:
Servlet Config: A servlet configuration object used by a servlet container to pass information to a servlet during initialization.
Servlet Context : Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.
Servlet Request: Defines an object to provide client request information to a servlet.
Servlet Response: Defines an object to assist a servlet in sending a response to the client.
Servlet Context : Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.
Servlet Request: Defines an object to provide client request information to a servlet.
Servlet Response: Defines an object to assist a servlet in sending a response to the client.
Subscribe
Login
0 Comments