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发行说明。
Here is a summary of some other configuration utilities.下面是一些其他配置实用程序的摘要。
The Preferences API allows applications to store and retrieve configuration data in an implementation-dependent backing store. Preferences API允许应用程序在依赖于实现的备份存储中存储和检索配置数据。Asynchronous updates are supported, and the same set of preferences can be safely updated by multiple threads and even multiple applications. 支持异步更新,同一组首选项可以由多个线程甚至多个应用程序安全地更新。For more information, refer to the Preferences API Guide.有关更多信息,请参阅《首选项API指南》。
An application deployed in a JAR archive uses a manifest to describe the contents of the archive. For more information, refer to the Packaging Programs in JAR Files lesson.
The configuration of a Java Web Start application is contained in a JNLP file. For more information, refer to the Java Web Start lesson.
The configuration of a Java Plug-in applet is partially determined by the HTML tags used to embed the applet in the web page. Depending on the applet and the browser, these tags can include <applet>
, <object>
, <embed>
, and <param>
. For more information, refer to the Java Applets lesson.
The class java.util.ServiceLoader
provides a simple service provider facility. A service provider is an implementation of a service a well-known set of interfaces and (usually abstract) classes. The classes in a service provider typically implement the interfaces and subclass the classes defined in the service. Service providers can be installed as extensions (see The Extension Mechanism). Providers can also be made available by adding them to the class path or by some other platform-specific means.还可以通过将提供者添加到类路径或通过某些其他特定于平台的方式使其可用。