Core Java
-

Getting Process ID in Java
Every running Java Virtual Machine (JVM) application executes as an operating system process. Like every other process, the JVM is…
Read More » -

LangChain4j RAG in Java: Embedding, Chunking, and Retrieval Without the Python Envy
A practical pipeline for document ingestion, embedding, and retrieval, all on the JVM, with a Spring AI comparison for good…
Read More » -

The Diamond Problem and Default Methods
Java 8 gave interfaces actual behavior, then had to answer the same question C++ has been arguing about for thirty…
Read More » -

Fixing Hibernate Illegal Attempt to Map a Non Collection Error
Hibernate is one of the most widely used Object Relational Mapping (ORM) frameworks in Java applications. It allows developers to…
Read More » -

Java SQL String Building Example
Building SQL queries dynamically is a common requirement in Java applications. Search screens, filtering APIs, reporting modules, and administrative dashboards…
Read More » -

Exploring CTE Support in Hibernate with HQL
Common Table Expressions (CTEs) are one of the most powerful SQL features for writing readable, reusable, and recursive queries. Prior…
Read More » -

Project Valhalla’s Value Classes Are Finally Real
What the new value keyword actually changes about heap layout, and why data-heavy Java applications should pay attention. For more than a…
Read More » -

The Expression Problem: Why Java’s Sealed Interfaces Are One Answer, Not The Answer
Adding a new type is trivial in object-oriented code. Adding a new operation is trivial in functional code. Nobody has…
Read More » -

Sealed Interfaces and Exhaustive Switch: Making Illegal States Unrepresentable
A compact, runnable example showing how sealed hierarchies plus pattern-matching switches turn a whole category of bugs into compile errors.…
Read More »

