Hi,
I am trying to understand how applets work.
I understand that a class file is bytecode, something that a JVM can understand and execute. When an applet runs on the user's system, the bytecode is transferred to the user system over the network.
Now, what happens when there are more than one class files? For example, what if the class that has the applet's init() method (class A) has an object of another of my classes (Class B)? The html file still contains classA.class in the APPLET tag. In such a scenario, does the classB.class also gets transferred over the network?
Also, how do jar files fit in here? They are just a compressed collection of class files, isn't it?
Any clarity about how this works would be greatly appreciated.
Thanks,