Concurrency in Java 8

June 22, 2019 Vikash 0

In programming language terminology Concurrency term refers to Multithreading. Basically, multithreading is a type of execution model which will allow multiple threads which exist within the context of a process so that they all can execute independently but they can share their process resources. The¬† Java memory model describes how […]

Method Reference in Java 8 -

Method References in Java 8 – Types

October 16, 2018 Vikash 0

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 are often referred to as¬†constructor […]

No Image

Method Reference in Java 8

June 13, 2018 Vikash 1

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); List numbers = map(new Integer(n), […]

No Image

Why Java 8 ?

May 15, 2018 Vikash 13

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 about performance and optimized coding […]