About Question enthuware.jwpv6.2.873 :
Posted: Sat Jan 26, 2013 9:35 am
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....".
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....".