Learn about the Null Object Pattern and how to implement it in Java
Search Results for: object
Time Comparison of Arrays.sort(Object[]) and Arrays.sort(int[])
Compare the performance of Arrays.sort() for Objects and primitives
Convert String to JsonObject with Gson
Learn a couple of methods for converting a JSON String into a JsonObject using the Gson library in Java.
Iterating Over an Instance of org.json.JSONObject
Learn how to iterate and traverse through a JSONObject
Accessing Spring MVC Model Objects in JavaScript
Learn how to access Spring MVC objects in JSP views that contain JavaScript code.
Java Classes and Objects
Explore two basic concepts of the Java language – classes and objects – with examples of their implementation.
Deserialize Immutable Objects with Jackson
Learn how to use Jackson to deserialize immutable objects
Mapping a Dynamic JSON Object with Jackson
Explore multiple ways of handling dynamic JSON objects with Jackson.
Persist a JSON Object Using Hibernate
Learn how attribute converters make it easy to persist JSON objects in Hibernate.
Merging java.util.Properties Objects
A quick and practical guide to merging Properties objects.
Java Primitives Versus Objects
A quick and practical comparison of objects and primitives in Java.
How to Get the Size of an Object in Java
A quick and practical guide to getting object’s size in Java.
Immutable Objects in Java
Learn about immutability and how you can achieve it in a Java object.
Get and Post Lists of Objects with RestTemplate
Learn how to GET and POST lists of objects using Spring’s RestTemplate
Hamcrest Object Matchers
Learn about Hamcrest Object matchers, which are a straightforward way of checking class properties.
How to Make a Deep Copy of an Object in Java
Learn four ways to create a deep copy of an object in Java, and why to prefer a deep copy over a shallow copy.
Object Type Casting in Java
An overview of type casting in Java, covered with simple and easy to understand examples.
A Guide to Creating Objects in Java
Take a look at the different ways to initialize primitives and objects in Java.
Java 9 java.util.Objects Additions
Learn about the new utility methods introduced in the java.util.Objects class in Java 9.
Testing with Selenium/WebDriver and the Page Object Pattern
Learn how to test a site using Selenium / WebDriver.