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...

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...

Monday, 27 February 2012 by Anijit Sarkar · 166 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...

Monday, 20 February 2012 by Anijit Sarkar · 13 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 »

J2EE: SERVLET: Session Tracking in Servlets using Interface HttpSession

Session tracking in Servlets is done by using Interface HttpSession. It helps to identify a client throughout many page requests or visiting a website and to store details about that client. Whenever a request arrives, it checks for the preexisting session object, to fetch details of the client from there,...

by Anijit Sarkar · 4 Read more »

Saturday, 11 February 2012

INTERNET: HTTP vs. HTTPS

 HTTP stands for HyperText Transfer Protocol, whereas, HTTPS is HyperText Transfer Protocol Secure. HTTP transmits everything as plan text, while HTTPS provides encrypted communication, so that only the recipient can decrypt and read the information.  Basically, HTTPS is a combination of HTTP and SSL (Secure Sockets Layer)....

Saturday, 11 February 2012 by Anijit Sarkar · 18 Read more »

Friday, 10 February 2012

INTERNET: HTTP Request and HTTP Response

 HTTP (HyperText Transfer Protocol): HTTP is a stateless protocol. That means, It doesn’t contain any information regarding the client. It works as a request-response protocol in the client-side computing model. As it’s an Application Layer Protocol within the Framework Internet Protocol Suite, needs...

Friday, 10 February 2012 by Anijit Sarkar · 6 Read more »

Thursday, 9 February 2012

INTERNET: Importance & Types of Session Tracking

  HTTP is a stateless protocol. That means it doesn’t contain any information regarding the client, where it’s coming from. So it’s hard for Web Server to know whether it’s a request from a new user or not. This behavior can cause many problems. For example, suppose a user has logged into a site. Now he wants to go to a particular...

Thursday, 9 February 2012 by Anijit Sarkar · 0 Read more »

Monday, 6 February 2012

J2EE: Web Container vs Web Server vs Application Server

Web Container / Servlet Container / Servlet Engine : In J2EE Architecture, a web container(also known as servlet container or servlet engine), is used to manage the components like servlets, JSP. It provides a runtime environment to the components of J2EE. When ever web server receive a request it forward it to web container which deals...

Monday, 6 February 2012 by Anijit Sarkar · 123 Read more »

Saturday, 4 February 2012

J2EE: SERVLET: Servlet Life Cycle

  Life cycle of a servlet starts when its first load in the memory space in web server and ends when unloaded from the server memory. we can divide this in 3 steps. STEP 1: INITIALIZATION: Server loads the servlet class. Creates an instance for the servlet class. Server initializes the instance by calling init() method. ...

Saturday, 4 February 2012 by Anijit Sarkar · 69 Read more »

Popular Posts

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