Monday, April 19, 2021

How to Create a thread-safe ConcurrentHashSet in Java 8? [Example]

Until JDK 8, there was no way to create a large, thread-safe, ConcurrentHashSet in Java. The java.util.concurrent package doesn't even have a class called ConcurrentHashSet, but from JDK 8 onwards, you can use the newly added keySet(default value) and newKeySet() methods to create a ConcurrentHashSet backed by ConcurrentHashMap in Java. This is better than old tactical solutions like using a concurrent hash map with dummy value or using the set view of the map, where you cannot add new elements. The Set returned by keySet(defaultValue) and newKeySet() methods of JDK 8 is a proper set, where you can also add new elements along with performing other set operations like contains(), remove() etc.

Top 5 Courses to Learn Ethical Hacking in 2021 - Best of Lot

Hello guys, if you want to learn Ethical Hacking in 2021 and looking for the best resources like online courses then you have come to the right place. Earlier, I have shared the best Cyber Security courses and in this article, I have shared the best Ethical Hacking courses for beginners and experienced IT professionals. If you don't know, Ethical hacking is the process of testing the infrastructure of your system or network for vulnerabilities and locating its weaknesses in order to close those vulnerabilities and make your systems more secure. This is very in-demand skills and there is a lot of job for Ethical hackers as companies, both big and small are grappling with security threats and they always looking to find and close any vulnerabilities they might have. 

Sunday, April 18, 2021

Top 20 Libraries and APIs Java Developer should Learn [UPDATED]

One of the traits of a good and experienced Java developer is the extensive knowledge of API, including JDK and third-party libraries. I spent a good deal of time learning API, especially after reading Effective Java 3rd Edition, where Joshua Bloch has advised us to use existing API for development rather than writing new pieces of code for common stuff. That advice making sense to me because of the testing exposure these 2nd party libraries get. In this article, I am going to share some of the most useful and essential libraries and APIs, a Java developer should be familiar with. Btw, I am not including frameworks like Spring and Hibernate because they are pretty well known and have specific features.

Top 5 Courses to Learn Redhat OpenShift in 2021 - Best of Lot

Hello guys, if you want to learn the RedHat Openshift platform and looking for the best Openshift courses then you have come to the right place. In the past, I have shared the best Docker and Kubernetes courses and in this article, I am going to share the best Openshift courses to join in 2021. if you are in the DevOps space, then you might have heard about Openshift. I didn't know about Openshift but have to learn when I had to work on a Spring boot project, which is deployed on the OpenShift Platform. Don't worry, it's not a very complicated thing to learn, and if you have used Docker and Kubernetes in past then you will appreciate what Openshift brings to the table.

Saturday, April 17, 2021

Review of Udemy Best React Complete Guide Course by AcadMind and Maximillian Schwarzmuller

If you want to learn React.js and looking for the best online course to join or want to learn more about React - The Complete Guide Udemy course then you have come to the right place. Earlier, I have shared the best React and Redux courses and in this article, I am going to review, Udemy's best React course, React - The Complete Guide (incl Hooks, React Router, Redux) by Maximillian Schwarzmuller and AcadMind. This 72-hour long course is one of the best resources for people wanting to learn to React and Max has just re-recorded all lessons making it the most up-to-date course to learn to React.js library in 2021. 

Friday, April 16, 2021

Top 10 Java ConcurrentHashMap Interview Questions with Answers [UPDATED]

The ConcurrentHashMap class part of concurrent collections package added on JDK 1.5 which contains utility classes like BlockingQueue, CopyOnWriteArrayList, CopyOnWriteArraySet etc. It is a replacement of synchronized hash-based map implementations e.g. Hashtable and synchronized HashMap. It implements Map and ConcurrentMap (a sub-interface of Map) interface which allows you to store key-value pairs. The class is similar to HashMap or Hashtable but it's more scalable and the right fit for concurrent Java application. Unlike Hashtable which achieves its thread-safety by compromising the scalability, ConcurrentHashMap uses advanced techniques e.g. dividing the map into segments to remain thread-safe and scalable at the same time.