热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

模拟考试

设为首页

收藏此页面

订阅邮箱地址

JSP 面试题与答案

Test your skills through the online practice test: JSP Quiz Online Practice Test

相关差异对比

相关差异对比

JSF vs JSPJSP vs ServletsJSP vs ASP
PHP vs JSP

问题 46. How many JSP scripting elements and what are they?

There are three scripting language elements:
--declarations
--scriptlets
--expressions

这有帮助吗? 添加评论 查看评论
 

问题 47. Why are JSP pages the preferred API for creating a web-based client program?

Because no plug-ins or security policy files are needed on the client systems(applet does). Also, JSP pages enable cleaner and more module application design because they provide a way to separate applications programming from web page design. This means personnel involved in web page design do not need to understand Java programming language syntax to do their jobs.

这有帮助吗? 添加评论 查看评论
 

问题 48. Can we use the constructor, instead of init(), to initialize servlet?

Yes , of course you can use the constructor instead of init(). There?s nothing to stop you. But you shouldn?t. The original reason for init() was that ancient versions of Java couldn?t dynamically invoke constructors with arguments, so there was no way to give the constructur a ServletConfig. That no longer applies, but servlet containers still will only call your no-arg constructor. So you won?t have access to a ServletConfig or ServletContext.

这有帮助吗? 添加评论 查看评论
 

问题 49. How can a servlet refresh automatically if some new data has entered the database?

You can use a client-side Refresh or Server Push.

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。