Java 14 – NUMA Aware G1

NUMA stands for Non-Uniform Memory Access. It is a memory architecture in which each processor core has its own local memory but other cores have permissions to access it. Paraller GC, when used with -XX:+UseParallelGC…

Java 14 – Other Enhancements

JEP 349 – JFR Event Streaming JEP 349 enhances JDK Flight Recorder data to continuous monitoring for in-process as well as out-of-process applications. Till Java 13, in order to use JFR data, user need to…

Java 14 – Deprecation & Removals

Deprecations Solaris and SPARC Ports (JEP 362) − because this Unix operating system and RISC processor are not in active development since the past few years. ParallelScavenge + SerialOld GC Combination (JEP 366) − since this is…

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…

Find top two largest number in Array

In this tutorial you will learn how to write a Java program to find the largest two numbers in a given array. Below is the procedure we will follow when writing our program: In this…

Insert Element in Array at given Location

In this tutorial, we will learn to write a Java program to insert an element at a given position of an array. Our program will insert an element at the given position (index) of the…

Delete Element at End of Array

In this tutorial, we will learn to write a Java program to delete a specific element of an array from the end and print the array. Our program will delete the element from the end…