Published on

JDK1.6 features

Published in: Technology, Education
1 Comment
1 Like
  • To download ppt, Pls try this https://chennaitechblog.wordpress.com/2013/05/20/java-6-0-features/
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide


  1. 1. JDK 1.6 change summary
  2. 2.  Collections Framework Enhancements XML and Web services support More Annotation types & More flexibleannotation processing Support for scripting languages JDBC 4.0 support Application client GUI enhancements for bothAWT and Swing Java compiler APIs accessible from programs
  3. 3. •What is new in the Collections ? Deque - a double ended queue, supporting elementinsertion and removal at both ends. Extends the Queueinterface. BlockingDeque - a Deque with operations that wait forthe deque to become non-empty when retrieving anelement, and wait for space to become available in thedeque when storing an element. Extends both theDeque and BlockingQueue interfaces. (This interface ispart of java.util.concurrent.)
  4. 4. •What is new in the Collections?(cont) NavigableMap - a SortedMap extended with navigation methodsreturning the closest matches for given search targets. ANavigableMap may be accessed and traversed in eitherascending or descending key order. This interface is intended tosupersede the SortedMap interface. ConcurrentNavigableMap - aConcurrentMap that is also a NavigableMap. (This interface is partof java.util.concurrent.) The Arrays utility class now has methods copyOf andcopyOfRange that can efficiently resize, truncate, or copysubarrays 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. 5. •XML and Web services support Java SE 6 address the growth of Web services andXML processing in the Java community includingsupport 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.0Web services metadata XML digital signature API
  6. 6. More Annotation types & More flexibleannotation processing?Annotations were in Java 5.0 allowing developers to embedmetadata in Java source code Java SE 6 includes additionalbuilt-in annotation types and annotation-processing APIsincluding: Web services metadata for the Java Platform (JSR 181) Common Annotations for the Java Platform (JSR 250) Pluggable Annotation Processing API (JSR 269)
  7. 7. Support for scripting languages?Framework to connect Java programs to scriptinglanguage interpreters (JSR 223)Java SE 6 includes JSR 223: Scripting for the Java™Platform API.This is a framework by which JavaApplications can "host" script engines.Suns implementation of Java SE 6 includes anexample script engine based on MozillaRhino:JavaScript for JavaSupport script: Ruby, groovy, javascript
  8. 8. •What is JDBC 4.0 support ?Java SE 6 includes JDBC 4.0; designed toimprove ease of JDBC developmentSimplified access to relational data sourceswith 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. 9. Application GUI Client APIs Java SE 6 enhances application GUI capabilities with changes toboth AWT and Swing AWTFaster splash screens (using native code)System tray support (icons & messages)Access to browsers and other desktop application “helpers” SwingImproved drag-and-drop supportEnhanced layout customizationSimplified multi-thread programmingWriting of GIF images
  10. 10. Java compiler APIs accessible from programs Java command-line compilers receive input from the filesystem and report errors using a stream Java SE 6 allows the compiler to receive input and/orsend output to an abstraction of the file system Java programs may now specify compiler directives andprocess compiler output (this feature was add mostly dueto software vendor requests)
  11. 11. ?