Java Notes
Java Notes
html
http://javahungry.blogspot.com/2014/11/15-good-questions-to-ask-at-an-
interview.html
http://javahungry.blogspot.com/2013/08/how-sets-are-implemented-internally-in.html
http://javahungry.blogspot.com/2013/06/difference-between-equals-and-double-equals-
method-with-example-java-collections-interview-question.html
http://javahungry.blogspot.com/2013/07/threads-lifecycle-example-java-methods-
explanation.html
http://javahungry.blogspot.com/2013/06/difference-between-string-stringbuilder.html
http://javahungry.blogspot.com/2014/02/hashmap-vs-concurrenthashmap-java-
collections-interview-question.html
http://javahungry.blogspot.com/2013/12/difference-between-arraylist-and-vector-in-
java-collection-interview-question.html
public HashSet(){
map = new HashMap<>();
}
Now going over to HashMap's put method, which returns null if key is unique and is
added to the map, returns the value of the key if that key is a duplicate