Blogger

Delete comment from: Javarevisited

Vicky said...

Another difference between HashMap vs HashSet is that HashMap uses put() method while HashSet uses add() method. HashMap requires two object as key and value , while HashSet only need one object to store. Overall HashSet vs HashMap is comparison between Map and Set Collection type in java.

Jun 22, 2012, 11:23:02 PM


Posted to Difference between HashMap and HashSet in Java

Google apps
Main menu