In the following code, what does getDocumentBase()return?


play(getDocumentBase(), "mysound.wav");

A) A URL object containing the location of the applet's .class file
B) A URL object containing the location of the HTML file that invoked the applet
C) The HTML location "mysound.wav"
D) The sound file itself


B) A URL object containing the location of the HTML file that invoked the applet

Computer Science & Information Technology

You might also like to view...

The appeal of __________ is that its designers have been able to prove an exact relationship between the strength of the embedded hash function and the strength of this form of authentication.

A. MAC B. HMAC C. GMAC D. CMAC

Computer Science & Information Technology

The ____________________ Document Format has become a universal standard for exchanging documents, spreadsheets, and other types of data files.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Why would a programmer specify a base-class type as the type of a catch handler, then throw objects of derived-class types?

What will be an ideal response?

Computer Science & Information Technology

EXCEPT for ________, all of the following are a text effect in the Font dialog box

A) Small caps B) All caps C) Hidden D) Outline

Computer Science & Information Technology