Results 1 to 4 of 4

Thread: ServletRequest and ServletResponse

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Answers
    1

    ServletRequest and ServletResponse

    ServletRequest and ServletResponse are the Interfaces and we can not create objects of interfaces, then why we call request and response are the objects ?


  2. #2
    Junior Member
    Join Date
    Apr 2007
    Answers
    1

    Re: ServletRequest and ServletResponse

    Quote Originally Posted by rasaya View Post
    ServletRequest and ServletResponse are the Interfaces and we can not create objects of interfaces, then why we call request and response are the objects ?

    hi rasaya,
    it is true that ServletRequest and ServletResponse are the Interfaces.
    but these interface implemented by web server, when we use objects of ServletRequest and ServletResponse means these objects send us by server.
    we never create object for these

    Anil Mishra


  3. #3
    Junior Member
    Join Date
    Jun 2007
    Answers
    2

    Re: ServletRequest and ServletResponse

    We know that ServletRequest and ServletResponse are interfaces but the web container takes responsibility of creating objects for these interfaces and this is done by the code which implements these interfaces.


  4. #4
    Junior Member
    Join Date
    Jun 2007
    Answers
    9

    Re: ServletRequest and ServletResponse

    hi
    here request and response r not objects ..we're using request and response as reference variables...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact