3 Replies Latest reply on Oct 2, 2013 10:22 PM by DrClap

    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();