Compares two objects for equality and checks for null values.
public static boolean equals( Object obj1, Object obj2 )
obj1
The first object to compare.
obj2
The second object to compare.
Returns true if the objects are equal; otherwise, returns false.