Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Prepare Interview

Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

JSP Interview Questions and Answers

Ques 16. How can a servlet refresh automatically if some new data has entered the database?

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

Is it helpful? Add Comment View Comments
Ques 17. The code in a finally clause will never fail to execute, right?
Ans. Using System.exit(1); in try block will not allow finally code to execute.
Is it helpful? Add Comment View Comments
Ques 18. How many JSP scripting elements are there and what are they?
Ans. There are three scripting language elements: declarations, scriptlets, expressions.
Is it helpful? Add Comment View Comments
Ques 19. In the Servlet 2.4 specification SingleThreadModel has been deprecated, why?
Ans. Because it is not practical to have such model. Whether you set isThreadSafe to true or false, you should take care of concurrent client requests to the JSP page by synchronizing access to any shared objects defined at the page level.
Is it helpful? Add Comment View Comments
Ques 20. How do I include static files within a JSP page?
Ans. Static resources should always be included using the JSP include directive. This way, the inclusion is performed just once during the translation phase. Do note that you should always supply a relative URL for the file attribute. Although you can also include static resources using the action, this is not advisable as the inclusion is then performed for each and every request.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2020 WithoutBook