Java Platform Standard Edition 7 Documentation
Oracle has two products that implement Java Platform Standard Edition (Java SE) 7: Java SE Development Kit (JDK) 7 and Java SE Runtime Environment (JRE) 7.
JDK 7 is a superset of JRE 7, and contains everything that is in JRE 7, plus tools such as the compilers and debuggers necessary for developing applets and applications. JRE 7 provides the libraries, the Java Virtual Machine (JVM), and other components to run applets and applications written in the Java programming language.
The following conceptual diagram illustrates Java component technologies:
What's New in Documentation
Documentation is regularly updated to provide developers with in-depth information about new features in the Java platform. Some recent updates include:
1.Swing
The following topics are covered:
Heavyweightand Lightweight Components
Hue-Saturation-Luminance(HSL) Color Selection in JColorChooser Class
Image 1 NimbusLook & Feel
Image 2 TranslucentWindow
Image 3 GradientWindow
Image 4 ShapedWindow
2. Networking Enhancements in Java SE 7
The URLClassLoader.closemethod has been added. This method effectively eliminates the problem of how tosupport updated implementations of the classes and resources loaded from aparticular codebase, and in particular from JAR files. See Closing a URLClassLoader for moreinformation.
The SocketsDirect Protocol (SDP) provides access to high performance network connections;see Understanding the Sockets Direct Protocolin The Java Tutorial.
3.CollectionsFramework Enhancements in Java SE 7
The interface TransferQueue has been added. It is a refinement of the BlockingQueue interface in which producers can wait forconsumers to receive elements. One implementation of the new interface is alsoincluded in this release, LinkedTransferQueue.
4. Client JRE Capabilities - Quick Reference
The window ofa dragged applet can be decorated with a default or custom title; see Requesting and Customizing Applet Decoration inDraggable Applets.
The followingenhancements have been made to the syntax of JNLP files; see JNLP File Syntax:
The os attribute in the information and resources elementscan now contain specific versions of Windows, such as Windows Vista or Windows7.
Applicationscan use the install attribute in the shortcut element to specify their their desireto be installed. Installed applications are not removed when the Java Web Startcache is cleared, but can be explicitly removed using the Java Control Panel.
Java Web Startapplications can be deployed without specifying the codebase attribute; see Deploying Without Codebase
A JNLP filecan be embedded into an HTML page; see Embedding JNLP File in Applet Tag.
You can checkthe status variable of the applet while it is loading to determine if theapplet is ready to handle requests from JavaScript code; see Handling Initialization Status With Event Handlers.
You now havecontrol of the window decoration style and title of an applet launched from ashortcut or dragged out of the browser; see Requesting and Customizing Applet Decorationin Developing Draggable Applets.
5. Java XML Technology Enhancements
This release contains Java API for XMLProcessing (JAXP) 1.4.5, supports Java Architecture for XML Binding(JAXB) 2.2.3, and supports Java API for XML Web Services (JAX-WS)2.2.4.
6. java.lang Package
Potentialdeadlocks were eliminated for multithreaded, non-hierarchically delegatingcustom class loaders; see Multithreaded Custom Class Loaders in Java SE 7.
7.Java Virtual Machine
Java Virtual Machine Support forNon-Java Languages: Java SE 7introduces a new JVM instruction that simplifies the implementation ofdynamically typed programming languages on the JVM.
Garbage-First Collector is a server-style garbage collector that replacesthe Concurrent Mark-Sweep Collector (CMS).
Java HotSpot Virtual MachinePerformance Enhancements
8. Java I/O
The java.nio.file package and its related package, java.nio.file.attribute, provide comprehensive support forfile I/O and for accessing the file system; see File I/O (featuring NIO.2). NIO stands for non-blocking I/O.
The directory <Java home>/sample/nio/chatserver/ contains samplesthat demonstrate the new APIs contained in the java.nio.file package.
The directory <Java home>/demo/nio/zipfs/ contains samples thatdemonstrate the NIO.2 NFS (Network File System) file system.
9. Security
A new nativeprovider has been added that provides several ECC-based algorithms(ECDSA/ECDH); see Sun PKCS#11 Provider's Supported Algorithmsin Java PKCS#11 Reference Guide.
Weakcryptographic algorithms can now be disabled; see Appendix D: Disabling Cryptographic Algorithmsin Java PKI Programmer's Guide andDisabled Cryptographic Algorithms in Java Secure Socket Extension (JSSE) Reference Guide.
Variousenhancements related to SSL/TLS have been added to Java Secure Socket Extension.
10. Concurrency
Thefork/join framework, which is based on the ForkJoinPoolclass, is an implementation of the Executorinterface. It is designed to efficiently run a large number of tasks using apool of worker threads. A work-stealing technique is used to keep all theworker threads busy, to take full advantage of multiple processors. SeeFork/Joinin The Java Tutorials.
Thedirectory <Java home>/sample/forkjoin/ contains samples that demonstratethe fork/join framework.
The ThreadLocalRandomclass eliminates contention among threads using pseudo-random numbers; see ConcurrentRandom Numbers.
The Phaserclass is a new synchronization barrier, similar to CyclicBarrier。
11. Java 2D
A new XRender-based Java 2D rendering pipeline is supported for modernX11-based desktops, offering improved graphics performance; see the xrenderflag in System Properties for Java 2D Technology.
The JDK now enumerates and displays installed OpenType/CFF fontsthrough methods such as GraphicsEnvironment.getAvailableFontFamilyNames; these fontsare also recognized by the Font.createFont method. See Selecting a Font.
The TextLayout class supports Tibetan script.
libfontconfig, a font configuration API, is used to select fonts to usefor the logical fonts for some implementations of Linux; see Fontconfig.
12. Internationalization
Unicode 6.0.0 is supported; see Unicode in The Java Tutorials.
The directory <Java home>/demo/jfc/Font2DTest/ contains samplesthat demonstrate Java support for Unicode 6.0.
Java SE 7 can accommodate new currencies that are identified by their ISO 4217 codes; see the Currency class.
13. Java Programming Language
The followingenhancements have been added to the Java language:
Underscores in Numeric Literals
Type Inference for GenericInstance Creation
Improved Compiler Warnings andErrors When Using Non-Reifiable Formal Parameters with Varargs Methods
The try-with-resources Statement
Catching Multiple Exception Typesand Rethrowing Exceptions with Improved Type Checking
14. JDBC 4.1
JDBC 4.1introduces the following features:
The ability touse a try-with-resources statement toautomatically close resources of type Connection, ResultSet, and Statement; see Closing Connections in Processing SQL Statements.
RowSet 1.1:The introduction of the RowSetFactoryinterface and the RowSetProviderclass, which enable you to create all types of row sets supported by your JDBCdriver; see Using the RowSetFactory Interface in Using JdbcRowSet Objects.
相关推荐
### Java集合类总结 在Java开发中,集合类(Containers)是极其重要的组成部分,它们作为开发者日常编程不可或缺的工具,不仅让代码变得更加简洁、高效,还能显著提升程序的功能性和灵活性。本文将对Java标准类库中...
- **集合框架**:熟悉Java中的集合框架,包括List、Set、Map等容器的使用方法。 #### 三、进阶技术 掌握Java基础后,可以进一步深入学习以下内容: - **多线程编程**:学习Java中的多线程模型,包括线程的创建、...
在JAVA游戏开发领域中,利用JAVA语言的强大特性和丰富的类库资源能够实现高质量的游戏制作。特别是对于斜视角游戏而言,其独特的视觉效果不仅能够为玩家带来更为沉浸的游戏体验,同时也对开发者提出了更高的技术要求...
JavaServer Faces(简称JSF)是一种基于Java的标准Web应用程序框架,它简化了基于组件的用户界面开发过程。JSF框架提供了一种易于使用的API来构建动态Web应用程序,并且通过其丰富的特性集,如表单处理、验证、国际...
- **高度可移植性**:基于Java的特性,J2ME应用程序可以在任何支持该平台的设备上运行,无需重新编译。 - **丰富的API集合**:除了标准的Java API外,J2ME还提供了额外的API来支持图形用户界面、网络连接和文件系统...
这种新特性使得处理集合数据时的代码更加简洁、易读,同时提高了性能。例如,通过Stream API与Lambda表达式结合,可以对集合进行高效且链式的操作,如过滤、映射和聚合。 此外,JDK 8还带来了新的日期和时间API...
使用OpenJava的编译器和虚拟机来理解和实验Java语言特性;而JUnit则可以为你的项目提供强大的单元测试支持,保证代码的可靠性和稳定性。 在软件测试中,这三个工具的结合使用能有效提升开发效率和代码质量。MuJava...
Spring 2.5版本是Spring发展史上的一个重要里程碑,引入了许多新特性,提升了框架的灵活性和性能。本资源“Spring2.5中文版CHM”提供了关于Spring 2.5的详细中文文档,对于学习和理解该版本的特性及其在中间层数据...
7. **集合与数据库操作**:允许开发者轻松创建、查询和管理MongoDB中的数据库和集合,支持索引创建、查询优化等。 8. **GridFS**:支持MongoDB的文件存储系统GridFS,用于存储和检索大文件,将文件拆分为多个块存储...
Java EE 1.7版本是Java EE 6的一个更新版本,主要改进了性能并增加了对HTML5的支持等新特性。 ### 二、SSH框架简介 SSH框架指的是Struts + Spring + Hibernate三个开源框架组合而成的一套轻量级J2EE项目解决方案。...
Swing是Java的一个图形用户界面工具包,它是Java Foundation Classes (JFC)的一部分,提供了比AWT更丰富的组件集合和更加现代化的外观风格。Swing框架允许开发者创建高度可定制化的UI组件,并且可以轻松地跨平台运行...
Struts2是一个强大的Java web应用程序框架,用于构建和管理MVC(Model-View-Controller)架构的Web应用。它在Java社区中广受欢迎,因为它的灵活性、可扩展性和丰富的插件支持。Struts2的核心是OGNL(Object-Graph ...
- `IEnumerable`接口提供了对集合进行枚举的能力,而`GetEnumerator()`方法则返回一个枚举器,用于迭代集合中的元素。 ### 4. 字符串变量的定义 **知识点概述**: - 在C#中,字符串变量应使用`string`关键字定义。...
Java Platform, Enterprise Edition (JavaEE) 是一个为开发企业级应用提供的一系列技术和规范的集合。它基于Java SE平台,并在此基础上提供了更高级别的服务,如Web服务、组件模型、安全服务、事务处理等。 #### 2....
6. 编程技巧:除了理论知识,算法竞赛还要求参赛者具有扎实的编程能力,包括对编程语言的熟练应用(如C++、Java、Python等)、调试技巧、内存管理等。 7. 竞赛策略:信息学奥林匹克竞赛往往需要在有限的时间内解决...
编码器是Spark用来将Java或Scala的对象转换成内部二进制格式的组件。它们对于在内存中存储和操作数据非常重要,特别是涉及到类型安全和性能优化时。 7. DataFrame和Row DataFrame可以看作是Row的集合,其中Row是...
GCC(GNU Compiler Collection)是一套由自由软件基金会发布的编译器集合,它支持多种编程语言,包括C、C++、Objective-C、Fortran、Ada、Go和Java等。GCC不仅是一个编译器,还包括了预处理器、编译器、汇编器和链接...