Java 教程是为 JDK 8 编写的。本页中描述的示例和实践未利用在后续版本中引入的改进。
Which classes can an applet extend?
For what do you use the start()
method?
对或错:An applet can make network connections to any host on the internet.
How do you get the value of a parameter specified in the JNLP file from within the applet's code?
Which class enables applets to interact with JavaScript code in the applet's web page?
对或错:Applets can modify the contents of the parent web page.
The Exercise
applet's parent web page has a JavaScript variable called memberId
. Write the code to set the value of the memberId
equal to "123489" in the applet's start
method.