class Node {
    long data;
    Node node;
    int rank;
}
- private Map<Long, Node> map = new HashMap<>();
- private Map<Long, Node> map = new HashMap<Long,Node>();
I am implementing hashmap of class Node
My question is the validity of the 2 above mentioned Hashmaps.(whether both are coreect or not?). If they are valid what is the difference in the two initializations?
 
    