Thursday, 10 December 2015

Java 6 New Features

1. Collections Framework Enhancements:

Java SE 6 API provides bi-directional collection access. New collection interfaces includes Deque, NavigableSet, NavigableMap.


2. java.io Enhancements:

New class” Console” is added and it contains methods to access a character-based console device. The readPassword()methods disable echoing thus they are suitable for retrieval of sensitive data such as passwords. The method System.console ()returns the unique console associated with the Java Virtual Machine.
public class ShowPassword { public static void main(String[] args) { System.out.println("Enter your password please"); char password[]=System.console().readPassword(); System.out.println(password); }}

3. Enhancements in GUI
4.  JDBC 4.0 Enhancements :
 Java SE 6 includes several enhancements to the Java Database Connectivity (JDBC) API. These enhancements will be released as JDBC version 4.0. The main objectives of the new JDBC features are to provide a simpler design and better developer experience
The major features added in JDBC 4.0 include:
1.Auto-loading of JDBC driver class
2.Connection management enhancements
3.Support for RowId SQL type
4.DataSet implementation of SQL using Annotations
5.SQL exception handling enhancements

5. Support of Derby database
6. Scripting Language Support
7.  Integrated Web Services.
8.  Support of  JAXB 2.0 (JSR 222)
9. Pluggable Annotation Processing





No comments:

Post a Comment