ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Java Related >> Java J2EE >> Servlets
 
 


 

 
 Core Java interview questions  Core Java Interview Questions (1721)
 Advanced Java interview questions  Advanced Java Interview Questions (331)
 Swing interview questions  Swing Interview Questions (44)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (196)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (146)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
Question
What is HTTP Session ?
 Question Submitted By :: Servlets
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
HTTP Session mainly used for associated with HTTP Client and
HTTP sever.session will maintain the state with unque Id for
each client req.
 
Is This Answer Correct ?    58 Yes 6 No
Jayaprakash
 
Answer
# 2
Http Protocol is stateless protocol. Hence server cannot
identify the request is from same client or different.
Hence server can treat every request as new request and may
ask for authentication for each request.
Hence for server to remember client and to respond in an
interactive way server needs to remember the client and its
activities. For which javax.servlet.http.HttpSession
interface is provided. Which helps in session tracking of
client requests.
HttpSession is one of the 4 ways of session tracking
mechanisms.
 
Is This Answer Correct ?    44 Yes 3 No
Sandeep M
 
 
 
Answer
# 3
--HTTP stands for HyperText Transfer Protocol--
--Session means a period of time--
HTTP Session is mainly used for clients, to trace their
requests towards server. For each client, a unique session
will be maintain until the server gets shutdown. Each client
have separate session ID
 
Is This Answer Correct ?    15 Yes 4 No
Rajkanth
 
Answer
# 4
HTTP Session is mainly used for clients, to trace their
requests towards server. For each client, a unique session
will be maintain until the server gets shutdown. Each client
have separate session ID
 
Is This Answer Correct ?    11 Yes 3 No
Ramesh
 
Answer
# 5
HttpSession present in package "javax.servlet.http".It is
mainly used for client request it will process and it will
throgh response to client.It also maintain only client
session.
 
Is This Answer Correct ?    5 Yes 2 No
P.venkatesh
 
Answer
# 6
Http Session is an object for one Client it creates one
object ........Http Session is good for using one
application .........ServletContext is good for using one
client...ServletConfig is good for using one servlet
 
Is This Answer Correct ?    17 Yes 22 No
Sk
 

 
 
 
Other Servlets Interview Questions
 
  Question Asked @ Answers
 
How will you open a new page after certain interval of time (5 sec), on clicking of a button in an html page?   2
how a user session can be tracked in servlets?   1
How ThreadSafe page attribute will be working in Servlet as well as in JSP?Automatically ThresdSafe is true in JSP so service method will be destroy in each and every request or not?so how thresd will handle srevice method? AZTEC 1
What is the default HttpRequest method?   6
What is Single Threaded Model in Servlets? Explain this with an example? Wipro 9
why business logic written using servlets not in jsp. Jsp used for presentation purpose. serlvet used for coding business logic and controller logic. Reason for using servlets in business logic.   4
How session tracking can be achieved, if your browser doesn't support cookies (or) if cookies are disabled?   2
What are cookies and how will you use them?   3
why are using HttpServlet in realtime projects and why are not using Genericservlet   2
When the methods init() and Distroy() will be called?   2
what is the difference b/w DispatchAction and LookUpDispatchAction? iGate 1
if u havea .class file ,how can u say whether it is servlet or not ,dont use java decompliler Polaris 4
 
For more Servlets Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com