The case where the hashmap key value key is null in JDK8

if the key value is null, in jdk7, the putNullKey method is called when put, but there is no handling of null in the put code of jdk8. What does jdk8 do when the key value of put is null?

Feb.28,2022

 static final int hash(Object key) {
        int h;
        return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);
    }
keynullhash0,

  if ((p = tab[i = (n - 1) & hash]) == null)
            tab[i] = newNode(hash, key, value, null);//nulltable0
Menu