Thursday 3 July 2014

8 new features for Java 8

Java is Ever Green Language has built ..lot's of even impossible kind of achievement .
java 6 
java 7
java 8..

Lambda Expressions
One issue with anonymous classes is that if the implementation of your anonymous class is very simple, such as an interface that contains only one method, then the syntax of anonymous classes may seem unwieldy and unclear. In these cases, you're usually trying to pass functionality as an argument to another method, such as what action should be taken when someone clicks a button. Lambda expressions enable you to do this, to treat functionality as method argument, or code as data.
                                                                                                continue,,,


Jdk 1.8 aka, Java 8 is launched today meaning that the General Availability release of it is out in the open and developers can switch from Early Release releases to a tested release for production use. But what does it means for you, the busy Java developer? Well, here are some points that I condensed to mark this release:

1.Lamda Expressions

I started with lambda expressions as this is probably the most sought after feature in the language after probably Generics/Annotations in Java 5.
Here’s the syntax:
1(argtype arg...) -> { return some expression.. probably using these arguments }
ref:
http://www.javacodegeeks.com/2014/03/8-new-features-for-java-8.html

No comments:

Post a Comment