Core Java
-
What Is Java TLAB?
Thread-Local Allocation Buffers (TLABs) enhance Java’s memory allocation efficiency by assigning each thread a dedicated memory area for object creation.…
Read More » -
Streams vs Loops in Java
In Java, a stream is a sequence of elements that can be processed in a functional style, enabling concise and…
Read More » -
When to Call System.out.flush() in Java
In Java, System.out.flush() is a method used to force the output stream (System.out) to immediately write any buffered data to…
Read More » -
Distinguishing Heap, Thread, and Core Dumps
A dump refers to information retrieved from a storage medium and saved for subsequent analysis. The Java Virtual Machine (JVM)…
Read More » -
Closing Java IO Streams
Ensuring the appropriate closure of IO streams is crucial when dealing with Java IO operations, as it plays a vital…
Read More » -
Hashtable vs ConcurrentHashMap
When handling key-value pairs in a Java application, two primary options come to mind: Hashtable and ConcurrentHashMap. Despite both providing…
Read More » -
Split Java Integer Into Digits
When dealing with integer numbers in Java, there are occasions where it becomes necessary to decompose them into individual digits…
Read More » -
Java Math ceil(), floor(), round() Methods
In Java, the process of rounding numbers is a frequently performed operation in a range of applications, spanning from mathematical…
Read More » -
Jacoco Coverage for Maven Multi-Module Project
Code coverage is a crucial aspect of software development, helping us ensure that our code is thoroughly tested. JaCoCo (Java…
Read More » -
New features in Java 21
Java 21, released in September 2023, introduced several features and enhancements. Let us delve into Java 21 new features. 1.…
Read More »