edited by
1,849 views
1 votes
1 votes

Match the following interfaces of Java. Servlet package $:$

$\begin{array}{clcl} & \textbf{List – I} && \textbf{List – II}\\ \text{a.}& \text{Servlet config} & \text{i} & \text{Enables Servlets to log events} \\  \text{b.}&  \text{Servlet Context} & \text{ii.} & \text{Read data from a client} \\ \text{c.} & \text{Servlet Request} & \text{iii.} & \text{Write data to a client } \\ \text{d.} & \text{Servlet Response } & \text{iv.} & \text{To get initialization parameters}\\ \end{array}$

$\textbf{Codes :}$

  1. $\text{a-iii, b-iv, c-ii, d-i}$
  2. $\text{a-iii, b-ii, c-iv, d-i}$
  3. $\text{a-ii, b-iii, c-iv, d-i}$
  4. $\text{a-iv, b-i, c-ii, d-iii}$
edited by

2 Answers

1 votes
1 votes
The answer is D..

A servlet configuration object used by a servlet container used to pass information to a servlet during initialization.
ServletContext Defines a set of methods that a servlet uses to communicate with its servlet container which enables servlets to log events.
ServletRequest Defines an object to provide client request information to a servlet. A ServletRequest object provides data including parameter name and values, attributes, and an input stream.
ervletResponse Defines an object to assist a servlet in sending a response to the client. The servlet container creates a ServletResponse object and passes it as an argument to the servlet's service method.
Answer:

Related questions

2 votes
2 votes
1 answer
1
makhdoom ghaya asked Jul 28, 2016
1,454 views
Which method is called first by an applet program ? start( ) run( ) init( ) begin( )
1 votes
1 votes
1 answer
2
makhdoom ghaya asked Jul 28, 2016
2,674 views
Converting a primitive type data into its corresponding wrapper class object instance is called BoxingWrapping InstantiationAutoboxing
1 votes
1 votes
2 answers
3
makhdoom ghaya asked Jul 28, 2016
6,035 views
Which methods are utilized to control the access to an object in multi-threaded programming ? Asynchronized methods Synchronized methods Serialized methodsNone of the abo...
2 votes
2 votes
3 answers
4