Skip to content
sneppets

sneppets

  • Privacy

How to access and process nested objects, arrays, or JSON ?

August 8, 2024December 5, 2024 Editorial StaffLeave a Comment on How to access and process nested objects, arrays, or JSON ?

To access and process nested objects, arrays, or JSON in Java, you can use libraries like Gson or Jackson, which provide easy ways to parse and manipulate JSON data. Access and process nested objects, arrays, or JSON using Gson Here’s… Read More!

Java arrays, nested, Object
sneppets-java8

How to clone or copy the class objects in Java ?

August 6, 2020 Editorial StaffLeave a Comment on How to clone or copy the class objects in Java ?

This tutorial guides you on how to clone or copy the class objects in Java. The process of creating an exact copy of an existing class object is called cloning. In cloning, when you clone an object, a bit wise… Read More!

Java class-object, clone, cloning, java, Object
sneppets-java8

Compare two objects using equals() method of Object Class

July 25, 2020 Editorial StaffLeave a Comment on Compare two objects using equals() method of Object Class

This tutorial guides you on how to compare two objects using equals() method of Object class in Java. There is a class called “Object” in “java.lang” package which is the super class of all classes in java. Method equals() is… Read More!

Java class, compare, equals, java, methods, Object
sneppets-java8

Casting Object Data Types in Java

July 23, 2020 Editorial StaffLeave a Comment on Casting Object Data Types in Java

This tutorial guides you on how to cast object data types in Java programming. In this tutorial you will learn how to convert sub class object to super class type and super class type in to sub class type by… Read More!

Java casting, java, Object, object-data-type, reference-data-types

Java – Check if object is null using Objects class static utility methods

December 10, 2019February 12, 2020 Editorial StaffLeave a Comment on Java – Check if object is null using Objects class static utility methods

Checking if object is null is a common problem in Java. To check that you can check if object itself is null or you can also use static utility methods of java.util.Objects class for operating on objects.

Java java, Object, Objects
Copyright © 2018 Sneppets. All Rights Reserved