Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

JSP Interview Questions and Answers

  Difficulty Level: AllBeginnerIntermediateExpert

Ques 1. What is JSP Compiler and where are compiled JSP Java files?

Ques 2. Is JSP technology extensible?

Ques 3. What is the ResourceBundle class in JSP?

Ques 4. What is the difference between a Scrollbar and a ScrollPane in JSP?

Ques 5. What is a Java package and how is it used?

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

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

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

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

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

Ques 11. How do I include static files within a JSP page?

Ques 12. Why does JComponent have add() and remove() methods but Component does not? because JComponent is a subclass of Container, and can contain other components and jcomponents. How can I implement a thread-safe JSP page?

Ques 13. How can I enable session tracking for JSP pages if the browser has disabled cookies?

Ques 14. How do I prevent the output of my JSP or Servlet pages from being cached by the browser?

Ques 15. How do you restrict page errors display in the JSP page?

Ques 16. What is the difference between JSP and Servlets?

Ques 17. Difference between GET and POST.

Ques 18. What is a output comment?

Ques 19. What is a Hidden Comment?

Ques 20. How do I include static files within a JSP page?

Ques 21. What are the two kinds of comments in JSP and what’s the difference between them.

Ques 22. What is a Expression?

Ques 23. What is a Declaration?

Ques 24. What is a Scriptlet?

Ques 25. Why are JSP pages the preferred API for creating a web-based client program?

Ques 26. Difference between forward and sendRedirect?

Ques 27. What are the different scope valiues for the <jsp:useBean>?

Ques 28. Explain the life-cycle mehtods in JSP?

Ques 29. How do I prevent the output of my JSP or Servlet pages from being cached by the browser?

Ques 30. What is the difference between variable declared inside a declaration part and variable declared in scriplet part?

Ques 31. Is there a way to execute a JSP from the comandline or from my own application?

Ques 32. How does JSP handle run-time exceptions?

Ques 33. How can I implement a thread-safe JSP page? What are the advantages and Disadvantages of using it?

Ques 34. How do I use a scriptlet to initialize a newly instantiated bean?

Ques 35. How can I prevent the word “null” from appearing in my HTML input text fields when I populate them with a resultset that has null values?

Ques 36. What's a better approach for enabling thread-safe servlets and JSPs? SingleThreadModel Interface or Synchronization?

Ques 37. What is the difference between variable declared inside a declaration and variable declared in scriplet?

Ques 38. How is scripting disabled?

Ques 39. What is the difference between ServletContext and PageContext?

Ques 40. What is a JSP and what is it used for?

Ques 41. What is difference between custom JSP tags and beans?

Ques 42. What are the two kinds of comments in JSP and what's the difference between them ?

Ques 43. What is JSP technology?

Ques 44. What is JSP page?

Ques 45. What are the implicit objects?

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

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

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

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

©2016 WithoutBook