Here you can find the source of hashCode(Object object)
null
.
public static int hashCode(Object object)
//package com.java2s; //License from project: Apache License public class Main { /**/*from w w w.ja v a 2 s.c om*/ * Returns the hash code of the specified object or 0 if it's * <code>null</code>. */ public static int hashCode(Object object) { if (object == null) { return 0; } return object.hashCode(); } }