Java 8 Optional Class
1. Overview Every Java coder is familiar with NullPointerException. And it is very hard to avoid it without using too many null checks. Java 8 Optional Class is a new…
1. Overview Every Java coder is familiar with NullPointerException. And it is very hard to avoid it without using too many null checks. Java 8 Optional Class is a new…
1. Overview In this article, we will learn how to use of static and default method inside interface in Java 8. Default methods enable you to add new functionality to…
1. Overview In this article, we will learn what is functional interface with lambda expression java 8. 2. Development environment Java : Oracle JDK 1.8 IDE …
Overview In Java 8, some new comparison utility methods are added in the Comparator interface which returns the behavior of Comparator. those methods can be used with lambda expression or…
This article contains java tutorial with different example. Its contains specially java 8 related features example. Index Install java in Ubuntu Linux Java Create Directory Java Find duplicate objects in list…
Java 8 NIO provide way to create Temporary file System Temp directory. Here is example of Java create temporary file using java nio. Creates an empty file in the default temporary-file…
Java nio provides so many useful and very quick methods using we can perform our work very easy. One of them is Files.newDirectoryStream method which will return all files from directory….
This article contains Java 8 Stream sorted Examples. Java 8 Stream provide two version of sorted method to sort given stream to natural order and sort stream based on comparator….
“flatMap name itself suggest that it is a combination of a map and a flat. It means that first we apply Function to our element and then flatten it” Stream.map…
This article contains different ways for Java 8 convert Array to Stream i.e. Stream.of and Array.stream using those methods, Array can be converted in Stream to perform iteration easily. Example…