• Save
Upcoming SlideShare
Loading in...5




JDK1.6 features

JDK1.6 features



Total Views
Views on SlideShare
Embed Views



2 Embeds 48

http://chennaitechblog.wordpress.com 43
https://chennaitechblog.wordpress.com 5



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • To download ppt, Pls try this https://chennaitechblog.wordpress.com/2013/05/20/java-6-0-features/
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

JDK1.6 JDK1.6 Presentation Transcript

  • JDK 1.6 change summary
  •  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
  • •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.)
  • •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);
  • •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
  • 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)
  • 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
  • •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)
  • 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
  • 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)
  • ?