Initially Java 7 was proposed to have many new features such as
- Modularization
 - Anonymous methods (closures)
 - Simplifications in generics implementations
 - Enhanced exception handling
 - Strings in switch statements
 - Dynamic languages support
 - Simplified initialization of collections
 - Elvis operators
 - API changes
 
Out of above listed features a few were dropped from actual release of Java 7 and they are supposed to be released as part of Java 8. And they are 
- Anonymous methods (closures)
 - Simplified initialization of collections
 - Elvis operators
 
New features in Java 7
- Change in language syntax
 - Constants
- Binary constants
 - Underscore in numeric constants
 
 - Strings in switch statement
 - Extended try catch
 - Multi-catch
 - Diamond operator
 - Better support of dynamic languages
- New bytecode instruction
 - New dynamic linkage mechanism
 
 - JDBC 4.1
 - try-with-resources statement
 - RowSet 1.1
 - NIO 2
- Comes with a set of views
 - New abstract class java.nio.file.Path
 - Notion of metadata
 
 - Updates in Swing API
 - Unicode 6
 - Updates in concurrency package
 - Automatic resource closure
 
No comments:
Post a Comment