Suppose we have a
List of objects and want to convert into
Today we will see how using java 8 stream flatmap method we can wind all the pairs from two Lists.
Let’s see how we can get all the unique characters from List of Strings.
Let’s understand why we need default methods which have been added in Java 8. Assume that we have an Interface with some abstract methods and it has many implementation classes. Now if we want to add new method in the Interface it means we need to change all implementations. Continue Reading
Let’s see how we can remove duplicate elements from array using.
Let’s see what happens when async calls exception is raised and how we can handle this situation.
Let’s see how we can paralellize java application. Suppose we have asked to develop application where given the libraries list we need to calculate the number of books in each library. Suppose calculation is an expensive operation. The first thing that comes to our mind is to do this by streams.
Default methods are introduced in Java 8. The main purpose of default method is to make possible evolving an existing API in compatible way. Interfaces can contain method implementation for which implementing class doesn’t need to provide implementation.