40 TOP Java JSP Interview Questions and Answers

List of top 40 most frequently asked java jsp Interview Questions interview questions and answers pdf download free

Java JSP Interview Questions and Answers List

  1. What is a JSP and what is it used for?
  2. What is difference between custom JSP tags and beans?
  3. What are the two kinds of comments in JSP and what’s the difference between them ?
  4. What is JSP technology?
  5. What is JSP page?
  6. What are the implicit objects?
  7. How many JSP scripting elements and what are they?
  8. Why are JSP pages the preferred API for creating a web-based client program?
  9. Is JSP technology extensible?
  10. Can we use the constructor, instead of init(), to initialize servlet?
  11. How can a servlet refresh automatically if some new data has entered the database?
  12. The code in a finally clause will never fail to execute, right?
  13. How many messaging models do JMS provide for and what are they?
  14. What information is needed to create a TCP Socket?
  15. What Class.forName will do while loading drivers?
  16. How to Retrieve Warnings?
  17. How many JSP scripting elements are there and what are they?
  18. In the Servlet 2.4 specification SingleThreadModel has been deprecated, why?
  19. What are stored procedures? How is it useful?
  20. How do I include static files within a JSP page?
  21. Why does JComponent have add() and remove() methods but Component does not?
  22. How do I prevent the output of my JSP or Servlet pages from being cached by the browser?
  23. How do you restrict page errors display in the JSP page?
  24. How can I enable session tracking for JSP pages if the browser has disabled cookies?
  25. What JSP lifecycle methods can I override?
  26. How do I perform browser redirection from a JSP page?
  27. How does JSP handle run-time exceptions?
  28. How do I use comments within a JSP page?
  29. Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?
  30. How can I implement a thread-safe JSP page?
  31. How can I declare methods within my JSP page?
  32. Can I stop JSP execution while in the midst of processing a request?
  33. Can a JSP page process HTML FORM data?
  34. Is there a way to reference the “this” variable within a JSP page?
  35. How do you pass control from one JSP page to another?
  36. Is there a way I can set the inactivity lease period on a per-session basis?
  37. How does a servlet communicate with a JSP page?
  38. Can you make use of a ServletOutputStream object from within a JSP page?
  39. How do I include static files within a JSP page?
  40. Can a JSP page instantiate a serialized bean?

This entry was posted in Interview Questions. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *