In this article we will learn the most important feature of Java 9 – “Java 9 Modules“. We will cover everything like why we need… [Read More]
Java 9 – Stream API Enhancements (With Examples)
We have already learned that Java 8 introduced the Stream API along with several other cool features. If you are not familiar with Streams then… [Read More]
Java 9 – @SafeVarargs Annotation (with examples)
Java 7 introduced the @SafeVarargs annotation to suppress the unsafe operation warnings that arises when a method is having varargs (variable number of arguments). The… [Read More]
Java 9 – Anonymous Inner classes and Diamond Operator
In this post, we will discuss the diamond operator enhancement introduced in Java SE 9. What is a diamond operator? Diamond operator was introduced as a… [Read More]
Java 9 – Try With Resources Enhancements
Try with resource statement was first introduced in Java 7. This statement has received a major enhancement in Java 9. In this guide, we will… [Read More]
Java 9 – Private methods in Interfaces (with examples)
As we know that Java 8 allowed us to create default and static methods in Interface. The intention was to have new methods added to… [Read More]
Java 9 – Factory methods to create Immutable Map
In the previous tutorials we learned about the factory methods introduced in Java 9 to create immutable List and immutable Set. In this guide, we… [Read More]
Java 9 – Factory methods to create Immutable Set
In the last tutorial, we learned how to create immutable lists with ease using the factory methods introduced in Java 9. In this guide, we… [Read More]
Java 9 – Factory method to create Immutable List
There are couple of useful factory methods introduced in Java 9 to create immutable (unmodifiable) lists. 1. Creating immutable list prior to Java 9 Before… [Read More]
java 9 JShell – Working with Methods
In the previous tutorial we learned how to work with variables in JShell. In this guide, we will learn how to create methods in JShell,… [Read More]
java 9 JShell – Working with variables
In the last tutorial we learned about JShell, the newly introduced feature of java 9. In this guide, we will see how to work with… [Read More]
Java 9 JShell (Java Shell) – REPL
JShell stands for java shell. It is also known as REPL (Read Evaluate Print Loop). The purpose of this tool is to provide a easy… [Read More]
Java 9 Features with Examples
Java 9 released on 21st September 2017. It is released with several new cool features. I will try to cover all the features in separate… [Read More]
jshell: Command Not Found on Mac OS X
If you are trying to access jshell on Mac OS X and getting the following error(jshell: command not found) that means you have to configure… [Read More]