Is question 14 of chapter 7 correct? It's about the type of the JSP implicit request and response objects, I would say they are of type HttpServletRequest and HttpServletResponse respectively and not ServletRequest and ServletResponse as the answer states.
I know it's mostly the same and indirectly, they are of their super class type but you know how this picky exam questions are...
-------------------<br /> <br />SCJD
posted 10 years ago
Hi Alex, I checked the spec, it gave the following info protocol dependent subtype of: javax.servlet.ServletRequest e.g: javax.servlet.http.HttpServletRequest
But now I am too getting confused, if we consider the parent class, then that means for each usage of request object would require a cast.
Secondly then session should also be javax.servlet.session rather than HttpSession.....