Learn how Mockito annotations work in multiple-level injection scenarios.
Search Results for: object
Checking if a Date Object Equals Yesterday
Explore various approaches for determining whether a given date object falls on yesterday.
Mutable vs. Immutable Objects in Java
Learn more about the definitions, examples, advantages, and considerations of mutable and immutable objects in Java.
Remove Null Objects in JSON Response When Using Spring and Jackson
Learn how to leverage Jackson mapping to simplify our REST interactions.
Check If a Java StringBuilder Object Contains a Character
Explore several approaches to chеck if a Java StringBuildеr objеct contains a specific character.
What Does It Mean to Hydrate an Object?
Learn about the meaning of the term hydration in the context of programming.
How to Convert JsonNode to ObjectNode
A quick guide to converting JsonNode to ObjectNode in Jackson
Checking if an Object’s Type Is Enum
Explore various approaches and best practices for determining if an object’s type is an enum.
Modifying Objects Within Stream While Iterating
Discover the common mistakes made while modifying the elements in a Java Stream and the correct way to do it.
Compare StringBuilder Objects in Java
Learn how to compare two StringBuilder objects in Java releases before and after Java 11.
Convert an XML Object to a String in Java
Learn how to convert an XML Document object to a string in Java.
How to Convert an Object to String
Explore various techniques for converting an object to its string representation in Java.
Using the Apache Commons Lang 3 for Comparing Objects in Java
Learn to compare objects using Apache Commons Lang 3.
Create an ArrayList with Multiple Object Types
Learn how to create an ArrayList with multiple object types in Java.
How To Convert Excel Data Into List Of Java Objects
Learn about the usage of several libraries, such as Apache POI, Poiji, FastExcel, and JExcelApi, to read and convert data from Excel files into Java objects.
How to Replace Deprecated jdbcTemplate.queryForObject and jdbcTemplate.query in Spring Boot 2.4.X and above
Laern about the deprecated queryForObject() and query() methods of JdbcTemplate and their preferred counterparts.
Constructing Java Objects From Only the Class Name
Explore the process of creating Java objects using their class names.
Create List of Object From Another Type Using Java 8
Explore how to create a list of objects of a different type based on a given list.
Update an Existing Amazon S3 Object Using Java
Learn how to replace the existing file content with newer content for the same AWS S3 path using AWS Java SDK.
Stateless Object in Java
Java requires all code to be in classes. Sometimes we may need to create an object with no state in order to help achieve a design pattern. We look at stateless objects and how they function.