Java Timestamp.hashCode()
Syntax
Timestamp.hashCode() has the following syntax.
public int hashCode()
Example
In the following code shows how to use Timestamp.hashCode() method.
public class Main {
public static void main(String[] args) {
java.sql.Timestamp ts2 = java.sql.Timestamp.valueOf("2005-04-06 09:01:10");
/*from ww w .j a v a2s. c om*/
System.out.println(ts2.hashCode());
}
}
The code above generates the following result.