About Question enthuware.jwpv6.2.873 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
harsh.sahajwani
Posts: 13
Joined: Sun Jan 20, 2013 5:58 am
Contact:

About Question enthuware.jwpv6.2.873 :

Post by harsh.sahajwani »

The explanation says Option 3 is correct. However, getResource only returns a URL object to the resource mapped to the path. It does not retreive the file present at the path specified. That operation can be performed by getResourceAsStream method which returns InputStream object for the file present at the path specified and it contains the contents of the file in the form of InputStream. But getResourceAsStream method is not in question here, getResource is.

So, the question should be modified appropriately
OR
The number of correct options should be 1
OR
Option 3 should explicitly state that "If a jsp file is retrieved using getResourceAsStream method....".

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

Re: About Question enthuware.jwpv6.2.873 :

Post by admin »

You are right. This has now been fixed.
Thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests