Common method for comparing any two Java objects
<p>I want to compare two Java objects <strong>without overriding equals method</strong>. Since I need to override equals method in n number of Classes I have, I am in need of a common utility method where we can compare two Java objects.</p>

<p>Something <em>like</em>:</p>

<pre><code>A a1,a2;
B b1,b2;
C c1,c2;
-----
-----
boolean isEqual1 = new ObjectComparator().isEquals(a1 , a2);
boolean isEqual2 = new ObjectComparator().isEquals(b1 , b2);
boolean isEqual3 = new ObjectComparator().isEquals(c1 , c2);
</code></pre>

<p>Please help me out to write a common utility for comparing any Java objects</p>

<p>Hope by using <code>Field</code> class, and <code>getClass</code> method we can achieve it. Please guide me.</p>
