English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

codebase is the URL from where the class file was downloaded from.

For example, a website might have the HTML files in the web root, e.g. www.mysite.com, while the code for applets on those pages may be in the /applets relative URL, e.g. www.mysite.com/applets. The web pages for that domain would then embed applets using the codebase attribute to tell the browser where to actually download the applet class files, e.g.


Codebase is also used in RMI when enabling dynamic class loading. The property java.rmi.server.codebase specifies the URL from which the interface, stub, and any referenced classes can be downloaded if the class files are not available on the client's classpath.

2006-09-10 21:21:07 · answer #1 · answered by vincentgl 5 · 0 0

code is the actual java code we write
and code base is the tags which we insert in the applet
i.e
/* code="r1.class" width=70 height=80
*/

2006-09-07 06:36:11 · answer #2 · answered by ch_nagarajind 3 · 0 0

fedest.com, questions and answers