3 Replies Latest reply: Oct 2, 2013 5:22 PM by DrClap RSS

    java.util.HashSet implementation


      I was looking at java.uti.HashSet implementation where below mentioned value is used as value of Hashmap key - value pair in implementation of Hashset. Can we use null instead of new Object().


      private static final Object PRESENT=new Object();