Learn more about the definitions, examples, advantages, and considerations of mutable and immutable objects in Java.
Search Results for: object declaration
Convert an XML Object to a String in Java
Learn how to convert an XML Document object to a string in Java.
Variable Instantiation on Declaration vs. on Constructor in Java
Learn that using either field declaration or constructor initialization is more of a preference.
Memory Layout of Objects in Java
Learn how the JVM lays out objects and arrays in the heap
Injecting Spring Beans into Unmanaged Objects
Learn how to inject a Spring bean into an ordinary object.
Deserialize Immutable Objects with Jackson
Learn how to use Jackson to deserialize immutable objects
A Guide to Creating Objects in Java
Take a look at the different ways to initialize primitives and objects in Java.
All the Ways Java Uses the Colon Character
Learn how Java uses the colon character in a variety of different ways.
A Guide to Java Profilers
A quick overview of four popular Java profilers and how they can help you find areas in your code that could benefit from optimization.
Introduction to JavaParser
A quick and practical guide to JavaParser.
Difference Between Lombok @AllArgsConstructor, @RequiredArgsConstructor and @NoArgConstructor
Learn about different constructor generation annotations in Lombok and when to use them.
OpenAPI Generator Custom Templates
Learn how to use OpenAPI Generator Custom Templates to generate customized client and server code from REST API definitions.
Implementing GraphQL Mutation Without Returning Data
Explore techniques for implementing GraphQL mutations without retrieving or returning specific information.
Difference Between flush() and close() in Java FileWriter
Learn about FileWriter’s common usage and delve into the differences between its flush() and close() methods.
Parse Java Source Code and Extract Methods
A quick and practical guide to parsing Java source code and extracting methods.
Static Final Variables in Java
In this tutorial, we learn how to declare and initialize constant variables.
Convert an XML File to CSV File
Learn how to quickly convert XML files to CSV using Java
Synchronize a Static Variable Among Different Threads
Learn several ways to synchronize access to static variables among different threads.
Unnamed Classes and Instance Main Methods in Java 21
Learn about the unnamed classes and instance main methods in Java 21.
How to Modify a Key in a HashMap?
Learn the remove() then put() approach to replacing a key in a Java HashMap.