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 (1722)
 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 (147)
 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
 
What are setComment and getComment methods in Cookies?   2
What is the use of Servlets? Infosys 7
Explain Servlet Chaining ?   2
What type of protocols are used in HttpServlet?   3
when will cookie information destroy?   7
In howmany ways applet-servlet communication can be done?   1
What are different types of SessionTracking?   2
What happens, when client requests for server object, which is not yet loaded into the memory?   2
init() method of servlet loaded by?   3
can it possible to validate form field before execution of a servlet service method if yes how??   6
difference between forward and sendredirect Accenture 6
what are the way a client can be tracked? IBM 3
 
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