I've been learning about HashMaps recently but I have one question that I can't seem to get a clear answer on. The main difference between -
HashMap hash1 = new HashMap();
vs
HashMap<,>hash1 = new HashMap <,> (); //Filled in with whatever Key and Value you want.
I thought when you define a HashMap it requires the Key and Value. Any help would be much appreciated. Thank You.