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
You might also like to view...
In the Word Options dialog box, Popular Commands can be found from the ________ box
A) Customize the ribbon B) New Group C) Add D) Choose commands from
Which of the following statements is false?
a. Each class declaration that begins with the access modifier private must be stored in a file that has the same name as the class and ends with the .java filename extension. b. Every class declaration contains keyword class followed immediately by the class’s name. c. Class, method and variable names are identifiers. d. An object has attributes that are implemented as instance variables and carried with it throughout its lifetime.