Back to Top

Wednesday, 29 February 2012

J2EE: SERVLET: What is Servlet Interface?


Interface javax.servlet.Servlet is that interface which defines the ServletLife Cycle methods. So, all servlets must implement this interface, either directly or by extending a class which implements this interface. Instead of directly implementing the Servlet Interface, a servlet can also extend Class GenericServlet (which implements Servlet Interface), or can extend HttpServlet Class (which extends the GenericServlet class).


Wednesday, 29 February 2012 by Anijit Sarkar · 6 Read more »

Monday, 27 February 2012

J2EE: SERVLET: What is Servlet?


Servlet:

Servlet is a server-side (runs within a Web server), Java Programming Language Class which interacts with clients via request-response programming model (example, HTTP Request-Response model).

It can respond to any type of request, but, generally, it is used to extend the application hosted by Web Server by providing dynamic web content.

It has build-in threading capability and provides a secure environment for programming.

Monday, 27 February 2012 by Anijit Sarkar · 201 Read more »

Friday, 24 February 2012

JAVA: Why can’t enum extends any other class?

By default, all enums implicitly extend java.lang.Enum. And as we know, Java doesn't support multiple inheritance, an enum cannot extend any other class.

Friday, 24 February 2012 by Anijit Sarkar · 1 Read more »

Monday, 20 February 2012

J2EE: SERVLET: SERVLET API


   Java Servlet API is that Application Program Interface (API), which defines and describes the contracts between servlets and servers. That means, it contains the set of programs and standard instructions to develop a proper access between a servlet and the server. Servlet API is a part of the official J2EE API. This API contains 2 packages with the extension javax. They are as follows.

·        Package javax.servlet
·        Package javax.servlet.http

Monday, 20 February 2012 by Anijit Sarkar · 42 Read more »

Friday, 17 February 2012

J2EE: SERVLET: What happens to Session if the client intentionally turns off the cookies?


   If client intentionally turns off the cookies, that means, the client chooses not to join the session. In this situation, until the client turns on the cookies, getSession will return a different session on each request, and isNew will always return true.
Anijit Sarkar

Friday, 17 February 2012 by Anijit Sarkar · 1 Read more »

Popular Posts

All Rights Reserved JAVA INTERVIEW QUESTIONS | Privacy Policy | Anijit Sarkar