About Question enthuware.jwpv6.2.811 :

Moderator: admin

Post Reply
emironen
Posts: 4
Joined: Thu Nov 27, 2014 8:48 am
Contact:

About Question enthuware.jwpv6.2.811 :

Post 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?

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.811 :

Post 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.
If you like our products and services, please help us by posting your review here.

emironen
Posts: 4
Joined: Thu Nov 27, 2014 8:48 am
Contact:

Re: About Question enthuware.jwpv6.2.811 :

Post by emironen »

Such kind of questions are confusing, but I'll be ready for them. Thank you :)

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests