09 Jan, 2017
Object cloning is the process of creating exact copy of the given object. There are two pre-requisite in java; 1) implement Cloneable interface and 2) override the clone() method defined in the java.lang.Object class.
Tags:
09 Jan, 2017
Object cloning is the process of creating exact copy of the given object. There are two pre-requisite in java; 1) implement Cloneable interface and 2) override the clone() method defined in the java.lang.Object class.
Tags:
11 Jan, 2017
Java 8 introduced new way of iterating Collections API. It is retrofitted to support forEach method which accepts Consumer in case of Collection and BiConsumer in case of Map.
Tags:
23 Jan, 2017
Java 8 reincarnated SAM interfaces and termed them Functional interfaces. Functional interfaces have single abstract method and are eligible to be represented with Lambda expression.
Tags:
23 Jan, 2017
Java 8 reincarnated SAM interfaces and termed them Functional interfaces. Functional interfaces have single abstract method and are eligible to be represented with Lambda expression.
Tags:
01 Feb, 2017
You can perform intermediate and terminal operations on Streams. Intermediate operations result in a new stream and are lazily evaluated and will start when terminal operation is called.
Tags:
01 Feb, 2017
Java 8 introduced new package java.util.stream which contains classes to perform SQL-like operations on elements. Stream is a sequence of elements on which you can perform aggregate operations (reduction, filtering, mapping, average, min, max etc.).
Tags:
02 Feb, 2017
Method references are the special form of Lambda expression. When your lambda expression are doing nothing other than invoking existing behaviour (method), you can achieve same by referring it by name.
Tags:
23 Aug, 2018
Java 8 introduced default and static methods in interfaces. These features allow us to add new functionality in the interfaces without breaking the existing contract for implementing classes.
Tags:
See all tags.