tag:blogger.com,1999:blog-8712770457197348465.post8885359916445807484..comments2024-03-19T01:04:48.783-07:00Comments on Javarevisited: How to Create a thread-safe ConcurrentHashSet in Java 8? [Example]javin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8712770457197348465.post-18145679821480416342020-01-03T04:01:40.047-08:002020-01-03T04:01:40.047-08:00what is the input parameter in keySet(param) doing...what is the input parameter in keySet(param) doing here?Huahttps://www.blogger.com/profile/15212716549673902440noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-44063918330335508462019-09-25T04:46:28.287-07:002019-09-25T04:46:28.287-07:00ConcurrentHashMap.newKeySet() is static, so you do...ConcurrentHashMap.newKeySet() is static, so you don't need to create an instance of the ConcurrentHashMap before.<br /><br />Set s = ConcurrentHashMap.newKeySet() is sufficient.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-35804843323283689642019-04-08T22:35:27.276-07:002019-04-08T22:35:27.276-07:00good explanation good explanation Rawalhttps://www.blogger.com/profile/10165230845629028225noreply@blogger.com