What is the difference between getCodeBase and
getDocumentBase methods?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about interrupt() method of thread class ?

666


What is a boolean field?

531


How do you compare objects in java?

503


Describe method overriding

589


what is the difference between preemptive scheduling and time slicing? : Java thread

535






What is thread synchronization in java?

485


Can a static block throw exception?

660


What is a functional interface?

549


How does callback work in java?

607


Why enumeration is faster than iterator?

529


How many bytes is a url?

564


Garbage collection in java?

597


How a string is stored in memory?

580


Can this keyword be used to refer static members?

547


What is a predicate method?

567