java.util.Objects- A static utility for objects introduced in Java 7

posted by anishaanisha 634 days, 3 hours, 6 minutes ago
Wednesday, July 25, 2012 12:55:01 PM GMT

A lot of you would be unaware of this new static utility for objects introduced in Java 7- its the java.util.Objects class. I came across this usage of class while I was browsing through the updated Java 8 collections API. The static utility methods added as part of java.util.Objects class allow us to perform null-safe operations on objects. Lets have a look at the use of each of those methods:compare This method accepts- the objects to be compared and also a Comparator. If the object references passe...

category: Java EE | clicked: 0 | | source: www.javabeat.net | show counter code
tags: Java 7, util object

To post comments using your Facebook,Twitter, Gmail etc credentials in the Discus comments section. Or use your Javapins credentials at the end of the page.
To post your comment as a Javapins user please login or signup to Javapins database.