|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
1. which life cycle method makes ready theservlet for garbage collection?
A.init
B.service
C.system.gc
D.destroy
2.lf servlet receives multiple requests, howmany objects will it create?
A.only one
B.many
C.Both A and B
D.None of above
3. Which web.xml tag is used to set servletconfig parameter
A.<param></param>
B.<init-param></init-param>
C.<context-param></context-param>
D.None of the above
4. Which of the following method setsapplication/context init parameter?
A.setParameter(String name,String value)
B.setParameter(String name,Object value)
C.setParameter(Object
value)
name,Object
D.Its not possible in the method
5. Servlet Config init parameter set in
A.Web.xml
B.Servlet class
C.Both A and B
D.None of the above
6.object is available to anyservlet or JSPs that are part of the webapp and provides communicationpetween servets and JSPs
A.Servlet
B.ServletConfig
C.ServletContext
D.HttpServletContext
7.“request” is an instance of which oneof the following classes
A.Request
B.HttpRequest
C.HttpServletRequest
D.ServletRequest
8. Which of the following method can beused to get the multiple values of aparameter like checkbox data?
A.equest.getParameter()
B.request.getParameterValues()
C.request.getParameterNames()
D.None of the above
9. Which type of statement can executeparameterized queries?
A.PreparedStatement
B.arameterizedStatement
C.ParameterizedStatementCalableStatement
and
Statement
10.which method is used to perform DMLstatements in JDBC?
A.execute()
B.xecuteQuery()
C.executeUpdate()
D.executeResult()
@Fich_C
|
|