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…

Default method and static method

As name implies, default methods in java 8 are simply default. If you do not override them, they are the methods which will be invoked by caller classes. They are…

Functional interface

Java 8 functional interface Single Abstract Method interfaces (SAM Interfaces) is not a new concept. It means interfaces with only one single method. In java, we already have many examples of such…

What is a lambda expression in Java

Lambda Express in Java The very important features of Lambda Expressions are that they execute in the context of their appearance. So, a similar lambda expression can be executed differently in…

What is Java programming language?

What is Java programming language? Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application…