There is an applet which is sopposed to load all it's class and image files from a JAR archive. The HTML file contains an ARCHIVE tag which references the archive on the Web server. This applet is run in the browser on the client machine. It is possible that the client machine where applet runs has same or similarly named classes to those used by applet stored locally and available through the classpath. My questions are:
1. If the applet has a choice of loading the class file from JAR file on the server or locally from a CLASSPATH, which one will it choose? What if the server and a client is the same machine where classes can be loaded both from JAR file and from CLASSPATH. Is there a documentation which covers this topic?
2. The applet uses GIF images which may also be available both in the JAR file and on the local machine (the directory structure in the JAR file and on local machine regarding .class and .gif files is the same). It looks like the applet will try to load the class file from the same source it loaded class files from. Is that true?
3. If the applet tries to load image file from a local directory but fails due to security restrictions, should it try to load it from an archive?