0% found this document useful (0 votes)
47 views1 page

Basic Java Servlet Interview Questions

Uploaded by

gosana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views1 page

Basic Java Servlet Interview Questions

Uploaded by

gosana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Basic Java Servlet Interview Questions

1. What is the difference between CGI and Servlet?


2. What is meant by a servlet?
3. What are the types of servlets? What is the difference between 2 types of
Servlets?
4. What is the type of method for sending request from HTTP server ?
5. What are the exceptions thrown by Servlets? Why?
6. What is the life cycle of a servlet?
7. What is meant by cookies? Why is Cookie used?
8. What is HTTP Session?
9. What is the difference between GET and POST methods?
10. How can you run a Servlet Program?
11. What is the middleware? What is the functionality of Webserver?
12. What webserver is used for running the Servlets?
13. How do you invoke a Servelt? What is the difference in between doPost and
doGet methods?
14. What is the difference in between the HTTPServlet and Generic Servlet? Explain
their methods? Tell me their parameter names also?
15. What are session variable in Servlets?
16. What is meant by Session? Tell me something about HTTPSession Class?
17. What is Session Tracking?
18. Difference between doGet and doPost?
19. What are the methods in HttpServlet?
20. What are the types of SessionTracking? Why do you use Session Tracking in
HttpServlet?

You might also like