Saturday, 19 January 2013

IBM Interview Questions for freshers - JSP and Servlet Interview Questions

 IBM Interview Questions for freshers

· What are Servlets?

· What are advantages of servlets over CGI?

· Can you explain Servlet life cycle?

· What are the two important API’s in for Servlets?

· Can you explain in detail “javax.servlet” package?
· What’s the use of Servlet Context?

· How do we define an application level scope for servlet?

· What's the difference between Generic Servlet and Http Servlet?

· Can you explain in detail javax.servlet.http package?

· What’s the architecture of a Servlet package?

· Why is HTTP protocol called as a stateless protocol?

· What are the different ways we can maintain state between requests?

· What is URL rewriting?

· What are cookies?

· What are sessions in Servlets?

· What the difference is between get Session (true) and get Session (false)?

· What’s the difference between “do Post” and “do get” methods?

· Which are the different ways you can communicate between servlets?

· What is functionality of “Request Dispatcher” object?

· How do we share data using “get Servlet Context ()”?