public static boolean deepEquals(Object a,
Object b)
Returns true if the arguments are deeply equal to each other and false otherwise. Here 'deeply' used in the sense that if a or b are arrays then they are recursively reached for deciding the equality.
Examples
package com.logicbig.example.objects;
import java.util.Objects;
public class DeepEqualsExample {
public static void main(String... args) { String s1 = "testStr"; String s2 = "testStr"; boolean b = equals(s1, s2); System.out.println(b);