Java 15 – Record

Java 14 introduces a new class type record as preview feature to facilitate creation of immutable data objects. Java 15 enhances record type further. It is still a preview feature. Record object have implicit constructor…

Java 15 – Text Blocks

Java 13 introduces text blocks to handle multiline strings like JSON/XML/HTML etc as is a preview feature. With Java 14, we’ve second preview of Text Blocks. Now Text Block is no more a preview feature…

Java 15 – Pattern matching in instanceof

Java 14 introduces instanceof operator to have type test pattern as is a preview feature. Type test pattern has a predicate to specify a type with a single binding variable. It continues to be a…

Java 15 – Overview

Java 15 introduced few language specific features under preview mode to Java and multiple JVM enhancements. This is an introductory tutorial that explains the basic-to-advanced features of Java 15 and their usage in a simple…

Java 15 – Environment Setup

Local Environment Setup If you want to set up your own environment for Java programming language, then this section guides you through the whole process. Please follow the steps given below to set up your…

Java 15 – Sealed Classes

Java 15 introduces a sealed classes as preview feature which provides a fine grained control over inheritance. Following are salient points to consider for a sealed class − Sealed class is declared using sealed keyword….

Java 14 – Helpful NullPointerException

Java 14 introduces NullPointerException with helpful information in case -XX:+ShowCodeDetailsInExceptionMessages flag is passed to JVM. Example Consider the following example − ApiTester.java Old Way: Compile and Run the program Output New Way: Compile and Run…