Topic

JDK

Collection size
104 articles
Page 3 of 6
Top Architect
Top Architect
Sep 19, 2021 · Fundamentals

Key New Features in Java 9–16: Private Interface Methods, Var, Switch Expressions, Records and More

This article provides a concise walkthrough of the most important Java 9‑16 language enhancements—including private methods in interfaces, diamond support for anonymous classes, enhanced try‑with‑resources, var type inference, switch expressions, text blocks, records, improved NullPointerException messages, foreign‑memory APIs, sealed classes and new garbage collectors—illustrated with clear code examples.

JDKJava14Java15
0 likes · 11 min read
Key New Features in Java 9–16: Private Interface Methods, Var, Switch Expressions, Records and More
Top Architect
Top Architect
Apr 14, 2021 · Backend Development

Understanding Java's StringJoiner: Implementation, Usage, and Design Insights

This article examines Java's StringJoiner class, explaining why it was introduced, how it builds on StringBuilder, detailing its constructors, methods such as add, merge, length, and toString, and provides code examples and analysis of its design choices and practical usage.

CodeAnalysisJDKStringBuilder
0 likes · 8 min read
Understanding Java's StringJoiner: Implementation, Usage, and Design Insights
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 10, 2021 · Fundamentals

Understanding the Template Method Design Pattern with Java Examples

This article explains the Template Method design pattern, illustrating its structure with Java drink‑making examples, discussing hook methods, and showing real‑world usages in JDK’s Comparable and Spring’s ApplicationContext, while highlighting advantages, drawbacks, and practical scenarios.

Design PatternHook MethodInheritance
0 likes · 16 min read
Understanding the Template Method Design Pattern with Java Examples
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 28, 2020 · Fundamentals

Understanding Java Dynamic Proxy: Static vs Dynamic Implementations and Tools

This article explains the proxy pattern in Java, compares static and dynamic proxy implementations, provides complete code examples for JDK dynamic proxies, CGLIB, Javassist, and ASM proxies, and discusses their characteristics, performance considerations, and practical usage scenarios.

ASMCGLIBDynamic Proxy
0 likes · 21 min read
Understanding Java Dynamic Proxy: Static vs Dynamic Implementations and Tools
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 6, 2020 · Backend Development

Analyzing JDK 1.8 FutureTask Source Code

This article provides a detailed analysis of JDK 1.8’s FutureTask implementation, explaining its purpose, usage examples, internal structure, state transitions, key methods such as run, get, cancel, and the concurrency mechanisms like volatile fields, CAS operations, and thread‑waiting queues.

CallableConcurrencyFutureTask
0 likes · 32 min read
Analyzing JDK 1.8 FutureTask Source Code
Architect's Tech Stack
Architect's Tech Stack
Sep 24, 2021 · Backend Development

Bisheng JDK 8 Installation Guide and Feature Overview

This article introduces Huawei's open-source Bisheng JDK 8, outlines its supported features such as Flight Recorder and fast serialization, provides step‑by‑step installation instructions for Linux/AArch64, and shares the project repository and related interview resources.

Aarch64InstallationJDK
0 likes · 4 min read
Bisheng JDK 8 Installation Guide and Feature Overview
Architect's Tech Stack
Architect's Tech Stack
May 16, 2021 · Fundamentals

Why Java’s for(;;) Loop Is Equivalent to while(true) and Its Compilation Details

This article explains the origin of Java’s for(;;) infinite loop syntax, compares it with while(true), shows how both compile to identical bytecode in JDK 8, and concludes that performance differences depend on the JVM implementation rather than the source construct.

BytecodeJDKfor loop
0 likes · 4 min read
Why Java’s for(;;) Loop Is Equivalent to while(true) and Its Compilation Details
Architect's Tech Stack
Architect's Tech Stack
Mar 18, 2021 · Backend Development

Java 16 Released: New Features, JEPs, and Community Contributions

Java 16 has been officially released, bringing 17 major enhancements—including new language features like pattern matching for instanceof and records, JVM improvements such as ZGC thread handling and elastic metaspace, new tools, incubator APIs, and broader community contributions—while maintaining backward compatibility and a predictable six‑month release cadence.

JDKJEPOpenJDK
0 likes · 12 min read
Java 16 Released: New Features, JEPs, and Community Contributions
Architect's Tech Stack
Architect's Tech Stack
Feb 22, 2021 · Backend Development

Understanding Java's StringJoiner Implementation and Usage

This article explains why the original StringBuilder is limited, demonstrates how to use StringJoiner for comma‑separated strings, and provides a detailed analysis of the JDK source code including member fields, constructors, element addition, toString, length, merge, and empty‑value handling.

JDKStringBuilderStringJoiner
0 likes · 7 min read
Understanding Java's StringJoiner Implementation and Usage
Architect's Tech Stack
Architect's Tech Stack
Oct 13, 2020 · Fundamentals

Five Common Java String Interview Questions with Detailed Answers

This article walks through five typical Java String interview questions, providing code examples, execution results, and in‑depth explanations of reference equality, the string constant pool, object creation, and compile‑time versus runtime concatenation to help readers master Java string behavior.

EqualityJDKMemory
0 likes · 8 min read
Five Common Java String Interview Questions with Detailed Answers
Cognitive Technology Team
Cognitive Technology Team
May 29, 2025 · Backend Development

Managing Multiple JDK Versions with SDKMAN! – Installation, Configuration, and Usage Guide

This guide explains how to install SDKMAN!, use it to list, install, switch, and set global or project‑specific Java JDK versions, upgrade existing installations, and discover other SDKs, providing a practical solution for frequent Java version changes in microservice development.

JDKSDKMANcli
0 likes · 8 min read
Managing Multiple JDK Versions with SDKMAN! – Installation, Configuration, and Usage Guide
IT Services Circle
IT Services Circle
Dec 26, 2024 · Fundamentals

Understanding the JDK Bug in Arrays.asList().toArray() and Its Fix in JDK 9

This article explains a long‑standing JDK bug where Arrays.asList().toArray() returns an Object[] that causes ArrayStoreException when modified, analyzes the underlying implementation differences between java.util.ArrayList and Arrays$ArrayList, and describes how the issue was finally fixed in JDK 9.

ArrayStoreExceptionArrays.asListJDK
0 likes · 9 min read
Understanding the JDK Bug in Arrays.asList().toArray() and Its Fix in JDK 9
IT Services Circle
IT Services Circle
Jul 7, 2022 · Fundamentals

Performance Benchmark of OpenJDK 8‑19, OpenJ9, and GraalVM CE on Ubuntu 22.04

Phoronix benchmarked OpenJDK versions 8 through 19 alongside OpenJ9 and GraalVM CE on an Intel Core i5‑12600K Ubuntu 22.04 system, revealing varied performance across SciMark, matrix multiplication, LU decomposition, DaCapo, Renaissance, and other tests, with OpenJDK 18/19 often leading in overall scores.

GraalVMJDKOpenJ9
0 likes · 4 min read
Performance Benchmark of OpenJDK 8‑19, OpenJ9, and GraalVM CE on Ubuntu 22.04
Selected Java Interview Questions
Selected Java Interview Questions
Nov 8, 2021 · Backend Development

Five Java String Interview Questions with Detailed Answers and Memory Analysis

This article presents five common Java String interview questions, explains the output of each code snippet, analyzes the behavior of the == operator and equals method, and illustrates memory allocation in the string constant pool and heap with diagrams and detailed explanations.

EqualityJDKString()
0 likes · 8 min read
Five Java String Interview Questions with Detailed Answers and Memory Analysis
Selected Java Interview Questions
Selected Java Interview Questions
Sep 30, 2021 · Fundamentals

Understanding the Role of modCount in Java HashMap's Fail‑Fast Mechanism

The article clarifies that the modCount field in java.util.HashMap is used to implement the fail‑fast iterator behavior, explains why the field was volatile in early JDK versions but not in later ones, and shows that ConcurrentModificationException can be thrown even in single‑threaded scenarios when the iterator detects structural changes.

ConcurrentModificationExceptionHashMapJDK
0 likes · 5 min read
Understanding the Role of modCount in Java HashMap's Fail‑Fast Mechanism
Selected Java Interview Questions
Selected Java Interview Questions
Jul 26, 2020 · Fundamentals

Detailed Analysis of Java LinkedList Implementation (JDK 1.8)

This article provides a detailed examination of the JDK 1.8 LinkedList class, covering its internal fields, constructors, node structure, and core methods for adding, retrieving, and removing elements, while highlighting performance characteristics and differences from ArrayList.

CollectionsJDKLinkedList
0 likes · 15 min read
Detailed Analysis of Java LinkedList Implementation (JDK 1.8)
Selected Java Interview Questions
Selected Java Interview Questions
May 12, 2020 · Fundamentals

Understanding Java String Equality and Memory: Five Interview Questions Explained

This article examines five common Java String interview questions, detailing why each equality check yields true or false by exploring the behavior of the == operator, the equals method, constant pool usage, object creation, and runtime concatenation, all illustrated with code and memory diagrams.

EqualityJDKMemory
0 likes · 9 min read
Understanding Java String Equality and Memory: Five Interview Questions Explained
Java Captain
Java Captain
Mar 14, 2024 · Fundamentals

Why and How to Upgrade from JDK 8 to JDK 19: Benefits, Considerations, and New Features

Upgrading from JDK 8 to JDK 19 brings significant performance, security, and modularity improvements, but requires careful compatibility testing, performance evaluation, and security checks, while offering new features such as Text Blocks, Virtual Threads, Record Patterns, and enhanced APIs, positioning Java for future cloud, big data, and AI workloads.

JDKNewFeaturesSecurity
0 likes · 6 min read
Why and How to Upgrade from JDK 8 to JDK 19: Benefits, Considerations, and New Features
Java Captain
Java Captain
Mar 13, 2022 · Fundamentals

Understanding the Underlying Data Structure and Mechanics of Java HashMap

This article explains Java HashMap's internal structure, including the array‑linked list and red‑black tree design, load factor, collision resolution methods, resizing process, key selection, thread‑safety concerns, and the hash calculation algorithm, providing detailed insights for developers.

Data StructureHashMapJDK
0 likes · 17 min read
Understanding the Underlying Data Structure and Mechanics of Java HashMap