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
 
My Question is that i am using <image> tag in my servlet and after compilation after that calling by url in my browser then images are not showing. Sometime images are showing and sometime is not showing. I am using Tomcat to run my servlets. Tell me if there any specification for image in servlets or what is solution for this ??   2
How to debug a servlet?   2
How can a servlet refresh automatically if some new data has entered the database? IBM 3
What is Generic Servlet and how it is different from Http Servlet? Wipro 5
which method in doGet or doPost is use to send binary date to server HCL 2
Is there any need to shutdown the web server, if you want to modify a servlet?   3
What is filter? Can filter be used as request or response?   1
How multiple simultaneous requests can be handled by servlets?   2
Difference Between Web Server and Application server ?? PWC 3
what is servlet and what you get when we use servlets? Satyam 7
what is a session object?   2
What is DSN and System DSN and what is the difference between them?   2
 
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