All posts by Vikash Kumar

Method Reference in Java 8 -

Method References in Java 8 – Types

In Java 8 method references has introduced, which will refer to methods or constructors without invoking them. These syntactic shortcuts create lambdas from existing methods or constructors. Basically, lambda expressions in Java are methods implemented without an enclosing class body and constructors created by lambdas

No Thumbnail

Method Reference in Java 8

In the place of an Anonymous class we can use Lambda expression but Sometimes, the lambda expression does nothing but call an existing method. In those cases, it’s often clearer to refer to the existing method by its name. [code lang=”java”] List digits = Arrays.asList(1,2,3,4,5,6,7,8);

No Thumbnail

Why Java 8 ?

With this new release, Java 8 is introducing a completely new JVM with full packed of some really exciting features at both the JVM and programming language level. There are literally dozens of new features that make java even better than previous versions and improvement