Microsoft SDK for Java

Utils.equals

Compares two objects for equality and checks for null values.

Syntax

public static boolean equals( Object obj1, Object obj2 )

Parameters

obj1

The first object to compare.

obj2

The second object to compare.

Return Value

Returns true if the objects are equal; otherwise, returns false.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.