Thursday 14 March 2013

identityHashCode(Object)


identityHashCode(Object)

Declaration:
public static int identityHashCode(java.lang.Object x)
Description:
Returns the same hashcode for the given object as would be returned by the default method hashCode(),
whether or not the given object’s class overrides hashCode(). The hashcode for the null reference is zero.
Parameters:
x - object for which the hashCode is to be calculated
Returns: the hashCode
Since: JDK1.1
getProperty(String)
Declaration:
public static java.lang.String getProperty(java.lang.String key)
Description:
Gets the system property indicated by the specified key.
Parameters:
key - the name of the system property.
Returns: the string value of the system property, or null if there is no property with that key.
Throws:
NullPointerException - if key is null.
IllegalArgumentException - if key is empty.

No comments:

Post a Comment