What is meant by getCodeBase() and getDocumentBase() method?- The getCodebase() method is also commonly used to establish a path to other files or folders that are in the same location as the class being run.
- The getDocumentBase() method is used to return the URL of the directory in which the document is resides.
URL getCodeBase(): Gets the base URL.
URL getDocumentBase(): Gets the URL of the document in which the applet is embedded.
|