- 0
- 0
- 约3.11千字
- 约 9页
- 2026-08-03 发布于广东
- 举报
2026servlet笔试题及答案
单项选择题(每题2分,共10题)
1.Servlet生命周期中哪个方法只执行一次?
A.init()
B.service()
C.destroy()
D.doGet()
2.以下哪个是Servlet容器?
A.JDK
B.Tomcat
C.Eclipse
D.MySQL
3.Servlet中获取请求参数使用哪个方法?
A.getAttribute()
B.setAttribute()
C.getParameter()
D.setParameter()
4.重定向使用哪个方法?
A.fo
原创力文档

文档评论(0)