Showing posts with label Some Important Servlets Interview Questions. Show all posts
Showing posts with label Some Important Servlets Interview Questions. Show all posts

Friday, 17 February 2012

TOP 25 Java Servlets Interview Questions and Answers for Freshers

Basic Java servlet interview questions and answers pdf free download

1. What is the servlet?
2 . What’s the difference between servlets and applets?
3. What’s the advantages using servlets than using CGI?
4 . What are the uses of Servlets?
5. What’s the Servlet Interface?
6 . When a servlet accepts a call from a client, it receives two objects. What are they?
7 .What is Java Servlet?
8 . Why is Servlet so popular?
9. What is servlet container?
10 . When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
11. If a servlet is not properly initialized, what exception may be thrown?
12. What is filter? Can filter be used as request or response?
13. When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
14. What is new in ServletRequest interface?
15. Request parameter How to find whether a parameter exists in the request object?
16. How can I send user authentication information while makingURLConnection?
17. Can we use the constructor, instead of init(), to initialize servlet?
18. How can a servlet refresh automatically if some new data has entered the database?
19. The code in a finally clause will never fail to execute, right?
20. What mechanisms are used by a Servlet Container to maintain session information?
21. Difference between GET and POST in Java Servlets?
22. What is Java Servlet session?
23. What is servlet mapping?
24. What is servlet context ?