St Patrick's Day Release of Java Tutorial
By Sharon Zakhour on Mar 18, 2011
The updated content for both releases includes the following features:
- The JLayer component, introduced in Java SE 7, is explained in How to Decorate Components with JLayer.
- As of Java SE 7 build 130, the NIO.2 File I/O package has been updated, with new and simplified API. The File I/O (Featuring NIO.2) section has been modified to reflect these changes.
- Samples that demonstrates how to use RowSet objects have been added to the JDBC trail. Please see Using RowSet Objects for more information. In addition, a sample that shows you how to integrate JDBC with a GUI API, in particular the Swing API, has been added. Please see Using JDBC with GUI API for more information.
- The latest version of the Unicode Standard is Unicode 6.0. The Java tutorial has new coverage for Unicode:
- Unicode, a lesson in the Internationalization trail.
- Converting Latin Digits to Other Unicode Digits
- Unicode Support, a page in the Regular Expressions lesson.
- As a result of Project Coin, several changes were introduced to the Java language:
- The Primitive Data Types page has been updated to discuss binary literals and to mention that underscore characters can appear anywhere between digits in a numerical literal.
- The switch Statement page has been updated to reflect the ability to switch on a String object.
- The Diamond Operator has been added to generics. See the Type Inference section for more information.
- Using non-reifiable parameters with varags methods is also new. See Using Non-Reifiable Parameters with Varargs Methods for more information.
- The ability to catch more than one type of exception with a single exception handler has been added. See The catch Blocks for more information.
- The try-with-resources statement ensures that a resource (such as a BufferedReader) is closed when the program is finished with it. See The try-with-resources Statement for more information.
The updated tutorial is available as a download from The Java Tutorials front page.
We hope you enjoy the updated content!
-- Sharon Zakhour



