Class loading from /lib/ext questions

I have two JAR files in the /lib/ext directory when using the Java Plugin 1.3.1. Both the JAR files contain a class with the same name and package name. And my classpath is set to whatever the default is for the Java Plugin.

1. Which class will the Plugin use, the one in jar1 or in jar2 (call them first.jar and second.jar)

2. What if other classes are used in second.jar prior to ever accessing first.jar, will the JVM use the class (with the same name) in second.jar when it is finally accessed?

3. Does alphabetical order of the JAR files matter?

4. When the Java Plugin initially loads, do the JAR files that are in the /lib/ext directory automatically get loaded into memory and are they never accessed from disk again?

A more general question is how does the class loader work when looking for classes (look in memory, classpath, etc. in what order).

[903 byte] By [swaller2] at [2007-9-26 4:07:29]
# 1
To 1.I believe its not specified.You should avoid the same class in each package for all jars you load.Its completely random which classes are used.
remarkus at 2007-6-29 13:08:46 > top of Java-index,Desktop,Deploying...
# 2
In fact, all files in lib/ext are analyzed, even if they do not end in .jar.I noticed for example, that a backup jar renamed to myJarFile.bak (from myJarFile.jar)was read instead of the new copy of the .jar file.
schleute at 2007-6-29 13:08:46 > top of Java-index,Desktop,Deploying...