This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Applets and the fly likes where is the code saved on client side ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "where is the code saved on client side ?" Watch "where is the code saved on client side ?" New topic
Author

where is the code saved on client side ?

Steve Yu
Ranch Hand

Joined: Mar 26, 2003
Posts: 60
A very very simple question --- when a client user download an applet to view it, it must download the bytecode through internet, so is the bytecode saved on local PC ? if so, what directory ? If I view an applet from a browser opened on a Unix workstation, then where is the bytecode saved ?
thanks,
steve
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17166
    
  27

It depends on the browser. The browser maintains disk and memory caches for downloaded items. Often the sizes of the caches can be tuned, but the tuning and location of these caches is very much dependent on the way the browser was implemented.
Java classloaders are not required to actually load from disk. It's perfectly legal to have classloaders build up classes from non-disk sources.


An IDE is no substitute for an Intelligent Developer.
Steve Yu
Ranch Hand

Joined: Mar 26, 2003
Posts: 60
Originally posted by Tim Holloway:
It depends on the browser. The browser maintains disk and memory caches for downloaded items. Often the sizes of the caches can be tuned, but the tuning and location of these caches is very much dependent on the way the browser was implemented.
Java classloaders are not required to actually load from disk. It's perfectly legal to have classloaders build up classes from non-disk sources.

so do you mean it is downloaded to the cache of local machine ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: where is the code saved on client side ?
 
It's not a secret anymore!