Page 1 of 1

About Question enthuware.jwpv6.2.811 :

Posted: Thu Nov 27, 2014 8:51 am
by emironen
Which of the following methods can be used to receive a file sent by a browser?

Why the answer "getInputStream() of HttpServletRequest" is wrong?

We can get access to this method, because HttpServletRequest extends ServletRequest.
If HttpServletRequest extends ServletRequest and ServletRequest has getInputStream(), then HttpServletRequest has getInputStream().
Am I wrong?

Re: About Question enthuware.jwpv6.2.811 :

Posted: Thu Nov 27, 2014 10:08 am
by admin
You are right but in a question like this where a method and its exact class/interface name is given, you should select the one in which that method is declared.

Re: About Question enthuware.jwpv6.2.811 :

Posted: Thu Nov 27, 2014 4:03 pm
by emironen
Such kind of questions are confusing, but I'll be ready for them. Thank you :)