The Java Tutorials have been written for JDK 8.Java教程是为JDK 8编写的。Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.本页中描述的示例和实践没有利用后续版本中引入的改进,并且可能使用不再可用的技术。See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.有关Java SE 9及其后续版本中更新的语言特性的摘要,请参阅Java语言更改。
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.有关所有JDK版本的新功能、增强功能以及已删除或不推荐的选项的信息,请参阅JDK发行说明。
In a link that is to run a Java Web Start application, which file is specified as the 在运行Java Web Start应用程序的链接中,哪个文件被指定为a
tag's href
attribute?a
标记的href
属性?
Which MIME type must a Web server recognize in order for it to host Java Web Start applications?为了承载Java Web Start应用程序,Web服务器必须识别哪种MIME类型?
In an application's 在应用程序的JNLP
file, which two elements must be specified within the resources
element?JNLP
文件中,必须在resources
元素中指定哪两个元素?
Which interface provides the ability to control how the Java Web Start application's resources are cached?哪个接口提供了控制Java Web Start应用程序资源缓存方式的能力?
BasicService
DownloadService
PersistenceService
ExtendedService
True or False: Java Web Start applications run in a secure sandbox by default.正确或错误:默认情况下,Java Web Start应用程序在安全沙箱中运行。
True or False: If a Java Web Start application is running in a secure sandbox, JAR files for the application can reside on different servers.正确或错误:如果Java Web Start应用程序在安全沙箱中运行,则该应用程序的JAR文件可以驻留在不同的服务器上。
For a Java Web Start application to support operations outside of the secure sandbox, what must you do?要让Java Web Start应用程序支持安全沙箱之外的操作,您必须做什么?
Write the XML code you would add to a 编写要添加到JNLP
file in order to request that the application have complete access to the client system.JNLP
文件中的XML代码,以请求应用程序完全访问客户端系统。
For a Java Web Start application, you have two icons, 对于Java Web Start应用程序,JAR文件中的one.gif
and two.gif
, in the images
directory in a JAR file. images
目录中有两个图标,one.gif
和two.gif
。Write the application code you would use to access these images.编写用于访问这些图像的应用程序代码。