ServletRequest and ServletResponse are the Interfaces and we can not create objects of interfaces, then why we call request and response are the objects ?
ServletRequest and ServletResponse are the Interfaces and we can not create objects of interfaces, then why we call request and response are the objects ?
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.
hi
here request and response r not objects ..we're using request and response as reference variables...