What is the difference between getCodeBase and
getDocumentBase methods?



What is the difference between getCodeBase and getDocumentBase methods?..

Answer / pradyut

URL getCodeBase()
Gets the base URL.
URL getDocumentBase()
Gets the URL of the document in which the applet is
embedded.

Is This Answer Correct ?    17 Yes 7 No

Post New Answer

More Core Java Interview Questions

string is immutable? right every one knows that, my question is it advantage or disadvantage making string immutable?

5 Answers   HCL,


how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)

0 Answers   Infosys, TCS,


Can we override final method?

0 Answers  


Can a function return a function?

0 Answers  


What is the difference between overriding and overloading in OOPS.

0 Answers   Axtria, ITC Indian Tobacco Company,






Explain about object oriented programming and its features?

0 Answers  


Is void a data type in java?

0 Answers  


Explain access specifiers?

0 Answers   Thomson Reuters, Virtusa,


What is ctrl m character?

0 Answers  


What is unmodifiable collection in java?

0 Answers  


Can you instantiate the math class?

0 Answers  


where singleton classes are used in j2ee web application.can we use it for connection pooling.

1 Answers  


Categories