What is mean by getCodeBase and getDocumentBase method ?

What is mean by getCodeBase and getDocumentBase method ?

The getDocumentBase() method returns \"the URL of the document in which the Applet is embedded.\"

 It actually return the URL of the directory in which the document resides.

 The getCodeBase() method gets the base URL. 

This is the URL of the directory which contains this applet.It Returns:the base URL of the directory which contains this applet.


By:Jalees
Date:2013-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher