I learnt that static class is a class whose members MUST be accessed without an instance of a class.
In the below code from java.util.HashMap, jdk 1.8,
public class HashMap<K,V> extends AbstractMap<K,V>
implements Map<K,V>, Cloneable, Serializable {
.........
static class Node<K,V> implements Map.Entry<K,V> {
final int hash;
final K key;
V value;
Node<K,V> next;
Node(int hash, K key, V value, Node<K,V> next) {
this.hash = hash;
this.key = key;
this.value = value;
this.next = next;
}
........
}
..........
}
What is the java syntax to invoke a constructor
Node(int hash, K key, V value, Node<K,V> next){...}
of a nested static class Node?