2017年11月30日 星期四

QUESTION 103

Given the portion of a valid Java EE web application's directory structure:

image

You want to know whether File1.html, File2.html, and/or File3.html is protected from direct access by your web
client's browsers. What statement is true?


A. All three files are directly accessible.
B. Only File1.html is directly accessible.
C. Only File2.html is directly accessible.
D. Only File3.html is directly accessible.
E. Only File1.html and File2.html are directly accessible.
F. Only File1.html and File3.html are directly accessible.
G. Only File2.html and File3.html are directly accessible.


Correct Answer: B
Explanation/Reference:
Note:
* WEB-INF is the folder just under the root of a WAR that holds information that you don't want to be accessible
to a client via a URL request. Specifically, it holds the web.xml, classes, and lib directories, but you can put
anything you want to hide from the client there.
* META-INF is what discriminates a JAR file from a plain ZIP file. It holds the manifest file and may hold other
deployment information as needed.

沒有留言:

張貼留言