Explore the similarities and differences between two constructs in Java generics.
Search Results for: object
Memory Address of Objects in Java
Learn how to find the memory address of objects in Java
YAML to List of Objects in Spring Boot
Learn how to map a YAML list into a java List using Spring Boot.
Measuring Object Sizes in the JVM
Learn how to measure Java object sizes with various tools such as JOL, Java Agents, and the jcmd command-line utility
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.
What Is [Ljava.lang.Object;?
Learn what [Ljava.lang.Object; is and how to better print array objects.
OpenAPI JSON Objects as Query Parameters
Learn how to specify JSON objects as query parameters using the OpenAPI specification.
Converting a BufferedReader to a JSONObject
Learn about JSONObject’s support for Readers
Comparing Objects in Java
Learn about comparing objects in Java.
Finding an Object’s Class in Java
A quick and practical guide to finding an object’s class in Java.
Mocking the ObjectMapper readValue() Method
Learn how to mock the Jackson ObjectMapper’s readValue method with Mockito.
Compare Two JSON Objects with Gson
Comparison of JSON in its string representation is often less effective than comparing it semantically. Here we use Gson to load the JSON and compare the data.
Could Not Reserve Enough Space for Object Heap
Learn the possible causes for the “Could Not Reserve Enough Space For Object Heap” error and how to solve it.
Pre-compile Regex Patterns Into Pattern Objects
Learn the benefits of pre-compile regex pattern and the new methods introduced in Java 8 and 11.
Object-Oriented-Programming Concepts in Java
A quick and practical overview of OOP concepts in Java.
Using Multiple Source Objects with MapStruct
Learn how to use multiple source objects with MapStruct.
Using a Mutex Object in Java
Explore the concept of a mutex object in Java.
Thymeleaf lists Utility Object
Learn how to use the Thymeleaf lists Utility Object
Compare Two JSON Objects with Jackson
Learn how to use Jackson to compare two JSON objects using the built-in comparator and a custom comparator