Java 8 Optional Class

In Java 8, we have a newly introduced Optional class in java.util package. This class is introduced to avoid NullPointerException that we frequently encounters if we do not perform null…

TreeMap in java with example

We will cover following points of TreeMap in Java: Basic Points about TreeMap. Different ways to iterate TreeMap in Java. Constructors and methods of TreeMap in Java. Basics of TreeMap…

LinkedHashMap in Java

We will cover following points of LinkedHasMap in Java: Basic Points about LinkedHasMap. Different ways to iterate LinkedHasMap in Java. Constructors and methods of LinkedHasMap in Java. Basics of LinkedHasMap…

HashMap in java

We will cover following points of HashMap in Java: Basic Points about HashMap. Different ways to iterate HashMap in Java. Constructors and methods of HashMap in Java. Basics of HashMap…