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

    java.util.HashSet implementation

    fabe0c8e-62ef-4cee-9d57-8a797b661888


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