OOPS
August 25, 2024
OOPS
August 25, 2024
OOPS
August 25, 2024
OOPS
August 25, 2024

OOPS

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
a-iii, b-iv, c-ii, d-i
B
a-iii, b-ii, c-iv, d-i
C
a-ii, b-iii, c-iv, d-i
D
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.
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.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!