Professional Documents
Culture Documents
Opt-1 Opt-2 Which of The Following Code Is Used To Get An Attribute in A
Opt-1 Opt-2 Which of The Following Code Is Used To Get An Attribute in A
b) Constructor
How constructor can be used for a servlet? a) Initialization function
a) b)
Which of the following code is used to get an attribute in session.getAttribute( session.alterAttribut
a HTTP Session object in servlets? String name) e(String name)
b) Servlets are
platform-
a) Servlets execute independent because
within the address they are written in
Which of the following is true about servlets? space of web server java
Can servlet class declare constructor with ServletConfig object 1 0
Which method is used to get three-letter abbreviation for Request.getISO3Count Locale.getISO3Countr
locale’s country in servlets? ry() y()
C. session.updateAttribute(String
D. session.setAttribute(String
name) name)
1 CO-4 1
c) Initialization and
Constructor function d) Setup() method 1 CO-4 1
c) d)
session.updateAttrib session.setAttribute(
ute(String name) String name) 1 CO-4 2
d) Servlets execute
within the address
space of web server,
platform
c) Servlets can use independent and
the full functionality uses the
of the Java class functionality of java
libraries class libraries 2 CO-4 2
May be Can't say 2 CO-4 1
Response.getISO3Cou Local.retrieveISO3Co
ntry() untry() 3 CO-4 2
Servlets execute
within the address
Servlets can use the space of web server,
full functionality of platform independent
the Java class libraries and uses the
functionality of java
class libraries
1 CO-4 3
4
2
3
4
4
1
4
1
3
2
2
4