java core

Your blog category

Low-Overhead Heap Profiling

In modern software applications, especially large and long-running Java programs, memory management is critical.Poor memory usage can lead to performance degradation, OutOfMemoryErrors, and even application crashes.Heap profiling — the process of analyzing memory usage patterns — helps developers understand, optimize, and debug how memory is allocated and used. However, traditional heap profiling tools often introduce …

Low-Overhead Heap Profiling Read More »

ChaCha20 and Poly1305 Cryptographic Algorithms

Cryptography is an essential pillar of modern software development. With rising concerns around privacy, data breaches, and secure communications, it has become increasingly important to use fast, reliable, and secure encryption algorithms.In Java 11, two powerful cryptographic algorithms — ChaCha20 and Poly1305 — were officially introduced. These algorithms provide developers with the ability to perform …

ChaCha20 and Poly1305 Cryptographic Algorithms Read More »

JDK Flight Recorder Event Streaming

Modern software systems, especially those built with Java, are often deployed in complex, dynamic environments where performance monitoring and troubleshooting are critical. Over the years, the Java ecosystem has evolved various tools to assist developers and system administrators in diagnosing performance issues with minimal impact on running applications. One of the most significant advancements in …

JDK Flight Recorder Event Streaming Read More »

Flight Recorder

Java Flight Recorder (JFR) is an integrated profiling and diagnostics tool in the Java Virtual Machine (JVM), designed to monitor and analyze Java applications with minimal performance impact. With Java 11, JFR became open-sourced in OpenJDK, eliminating the need for commercial licenses and making it widely accessible for developers. This essay briefly explores JFR’s significance, …

Flight Recorder Read More »

HTTP Client API

Java 11 introduced the standardized HTTP Client API (module java.net.http, package java.net.http) as part of JEP 321, replacing the legacy HttpURLConnection with a modern, flexible, and feature-rich API. It supports HTTP/1.1, HTTP/2, WebSocket, and both synchronous and asynchronous requests, eliminating the need for third-party libraries like Apache HttpClient for many use cases. Below is a …

HTTP Client API Read More »

New Methods in String Class

Java 11 introduced six new methods to the String class to enhance string manipulation, particularly with better Unicode support and streamlined operations.  isBlank() Purpose: Returns true if the string is empty or contains only whitespace characters (including Unicode whitespace), otherwise false. Use Case: Useful for validating input strings to check if they are effectively empty. …

New Methods in String Class Read More »

Scroll to Top