Your's deeply - Why Arrays.deepEquals when we have Arrays.equals
While everybody would naturally accept the following lines of code on grounds of reference equality and value equality and that String and wrappers override the equals method, it takes some effort at first to accept the behavior of Arrays.equals and Arrays.deepEquals Object obj1=new Object(); Object obj2=new…