1 / 11

JDK 1.6 change summary

JDK 1.6 change summary. D. MANIKANDAN. Collections Framework Enhancements XML and Web services support More Annotation types & More flexible annotation processing Support for scripting languages JDBC 4.0 support Application client GUI enhancements for both AWT and Swing

xenon
Download Presentation

JDK 1.6 change summary

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. JDK 1.6 change summary D. MANIKANDAN

  2. Collections Framework Enhancements XML and Web services support More Annotation types & More flexible annotation processing Support for scripting languages JDBC 4.0 support Application client GUI enhancements for both AWT and Swing Java compiler APIs accessible from programs

  3. Deque - a double ended queue, supporting element insertion and removal at both ends. Extends the Queue interface. BlockingDeque - a Deque with operations that wait for the deque to become non-empty when retrieving an element, and wait for space to become available in the deque when storing an element. Extends both the Deque and BlockingQueue interfaces. (This interface is part of java.util.concurrent.) What is new in the Collections ?

  4. What is new in the Collections?(cont) NavigableMap - a SortedMap extended with navigation methods returning the closest matches for given search targets. A NavigableMap may be accessed and traversed in either ascending or descending key order. This interface is intended to supersede the SortedMap interface. ConcurrentNavigableMap - a ConcurrentMap that is also a NavigableMap. (This interface is part of java.util.concurrent.) The Arrays utility class now has methods copyOf and copyOfRange that can efficiently resize, truncate, or copy subarrays for arrays of all types. Before: int[] newArray = new int[newLength]; System.arraycopy(oldArray, 0, newArray, 0, oldArray.length); After: int[] newArray = Arrays.copyOf(a, newLength);

  5. XML and Web services support Java SE 6 address the growth of Web services and XML processing in the Java community including support for Web Services client stack Streaming API for XML (StAX) Java Architecture for XML Binding (JAXB) 2.0 Java API for XML-based Web services (JAX-WS) 2.0 Web services metadata XML digital signature API

  6. More Annotation types & More flexible annotation processing? Annotations were in Java 5.0 allowing developers to embed metadata in Java source code Java SE 6 includes additional built-in annotation types and annotation-processing APIs including: Web services metadata for the Java Platform (JSR 181) Common Annotations for the Java Platform (JSR 250) Pluggable Annotation Processing API (JSR 269)

  7. Support for scripting languages? Framework to connect Java programs to scripting language interpreters (JSR 223) Java SE 6 includes JSR 223: Scripting for the Java™ Platform API. This is a framework by which Java Applications can "host" script engines. Sun's implementation of Java SE 6 includes an example script engine based on Mozilla Rhino:JavaScript for Java Support script: Ruby, groovy, javascript

  8. What is JDBC 4.0 support ? Java SE 6 includes JDBC 4.0; designed to improve ease of JDBC development Simplified access to relational data sources with utility classes Use of generics and annotations Addition of JDBC 4.0 wrapper pattern Safe access to vendor-specific APIs Automatic driver discovery Enhanced connection management New data types (including XML and SQL ROWID)

  9. Application GUI Client APIs Java SE 6 enhances application GUI capabilities with changes to both AWT and Swing AWT Faster splash screens (using native code) System tray support (icons & messages) Access to browsers and other desktop application “helpers” Swing Improved drag-and-drop support Enhanced layout customization Simplified multi-thread programming Writing of GIF images

  10. Java compiler APIs accessible from programs Java command-line compilers receive input from the file system and report errors using a stream Java SE 6 allows the compiler to receive input and/or send output to an abstraction of the file system Java programs may now specify compiler directives and process compiler output (this feature was add mostly due to software vendor requests)

  11. ?

More Related