Blog Posts - J2ee Interview Questions



FRAMEWORK: MVC – Model View Controller

Model-View-Controller (MVC) is a popular Software Architecture pattern widely used in web applications. It separates application data from UI (user interface) by a thin controlling layer, which actually helps as a bridge between UIs and model. In thi...
by JAVA INTERVIEW QUESTIONS on Feb 10, 2013

J2EE: SERVLET: Class GenericServlet vs Class HttpServlet

Class GenericServlet :  ·                    It is an abstract class which defines a generic and protocol independent servlet. Here, protocol indepen...
by JAVA INTERVIEW QUESTIONS on Feb 29, 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 t...
by JAVA INTERVIEW QUESTIONS on Feb 28, 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, genera...
by JAVA INTERVIEW QUESTIONS on Feb 27, 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 betwee...
by JAVA INTERVIEW QUESTIONS on Feb 19, 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 a...
by JAVA INTERVIEW QUESTIONS on Feb 16, 2012

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...
by JAVA INTERVIEW QUESTIONS on Feb 16, 2012

J2EE: SERVLET: What happens to HttpSession 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 a...
by JAVA INTERVIEW QUESTIONS on Feb 16, 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 instan...
by JAVA INTERVIEW QUESTIONS on Feb 5, 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 J...
by JAVA INTERVIEW QUESTIONS on Feb 5, 2012


Trending Topics

Close