Wednesday, May 28, 2008

Java Tricky Question - 4

Q : Your web application includes an applet packaged as a JAR file. Which directory would you keep the JAR file in?
A:
Because an applet is only run on the client side, the applet JAR file
should be accessible to the clients. This means that it may be kept anywhere
in the document root of the application except in the WEB-INF
directory and its subdirectories.
( As the contents inside the WEB-INF is not visible to client )

No comments: