Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

JSP Interview Questions and Answers

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

Related differences

Related differences

JSF vs JSPJSP vs ServletsJSP vs ASP
PHP vs JSP

Ques 6. What are the Object and Class classes used for?

The Object class is the highest-level class in the Java class hierarchy. The Class class is used to represent the classes and interfaces that are loaded by a Java program.

Is it helpful? Add Comment View Comments
 

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

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

Is it helpful? Add Comment View Comments
 

Ques 8. The code in a finally clause will never fail to execute, right?

Using System.exit(1); in try block will not allow finally code to execute.

Is it helpful? Add Comment View Comments
 

Ques 9. How many JSP scripting elements are there and what are they?

There are three scripting language elements: declarations, scriptlets, expressions.

Is it helpful? Add Comment View Comments
 

Ques 10. In the Servlet 2.4 specification SingleThreadModel has been deprecated, why?

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
 

Most helpful rated by users:

©2024 WithoutBook