Java Concurrency Volatile Keyword

Java Concurrency – Volatile Keyword Use volatile keyword to guarantee threads read variable value directly from main memory. 1. Introduction The Java volatile keyword is used to mark a Java…

How to install java 13 on windows

How To Install Java 13 On Windows This tutorial provides all the steps required to install the Oracle Java 13 officially distributed by Oracle for Windows. It provides the steps…

Java Collections

Collections in Java A collection is group of objects. Java Collections framework is consist of the interfaces and classes which helps in working with different types of collections such as…

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…