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....".
About Question enthuware.jwpv6.2.873 :
Moderators: Site Manager, fjwalraven
-
- Posts: 13
- Joined: Sun Jan 20, 2013 5:58 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.873 :
You are right. This has now been fixed.
Thank you for your feedback!
Thank you for your feedback!
Who is online
Users browsing this forum: Google [Bot] and 1 guest