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

What is a function in programming?

0 Answers  


Is zero a natural number?

0 Answers  


How many types of packages are there in Java?

5 Answers  


What are Normalization Rules? Define Normalization?

0 Answers  


What language is pass by reference?

0 Answers  


How to make a write-only class in java?

0 Answers  


Is JRE required to compile Java files ?

4 Answers   HCL,


What is your platform’s default character encoding?

0 Answers  


Write code to implement bubble sort in java?

0 Answers  


if a java file without any source code is valid java file?

3 Answers   SparkTG,


What are the different data types in java?

0 Answers  


What is a local class in java?

0 Answers  


Categories