Pavan Kumar Dittakavi wrote:1.My first question is, since it is a zipped file, how can an application locate a specific class from it at runtime...is it that applications extract the contents of jar files at runtime and then pick up an appropriate class?. Is there any special mechanisms that come into picture here?
Unless it specifically says something about this in the
Java language Specification, then it is probably entirely up to the JVM developer whether they extract all the files in one go or just extract them as needed.
Pavan Kumar Dittakavi wrote:2.Can jar files be delay loaded just as dlls.
Jar files are not loaded - classes are. And classes are only loaded when they are required.