Core Java
-

Compile Java Code with Java Compiler API
Java is traditionally compiled using command-line tools like javac. However, Java 6 introduced the Java Compiler API (JSR 199), which…
Read More » -

How to Map Nested Properties Using MapStruct
This article explores how to perform nested mapping using the MapStruct library. Nested mapping is a common requirement in enterprise…
Read More » -

Hibernate Fix DuplicateMappingException
1. Introduction To fix DuplicateMappingException requires that a column only maps to a single field. The org.hibernate.DuplicateMappingException is a runtime…
Read More » -

Java Printing Stack Values Example
Printing the contents of a stack in Java is a common requirement when debugging or displaying the current state of…
Read More » -

How to Modify Property Files in Java
Property files are commonly used in Java applications to manage configuration data. They store key-value pairs and are easy to…
Read More » -

Gson @Expose vs @SerializedName
1. Introduction Gson @Expose and @SerializedName annotations are provided by the Gson library to control serialization and deserialization behavior when converting…
Read More » -

JSONObject Extract Keys Example
Working with JSON in Java is common when dealing with APIs, configurations, or data pipelines. One common task is extracting…
Read More » -

How to Replace a Specific Word in a File Using Java
In this article, we explore several approaches to replacing a specific word within a text file using Java, including standard…
Read More » -

Getting started with Class-File API
Java class files form the bytecode representation of Java programs and are integral to the Java Virtual Machine (JVM). With…
Read More »



