Guide To CompletableFuture 1. Introduction This article is a guide to the functionality and use cases of the CompletableFuture class – introduced as a Java 8 Concurrency API improvement. Further reading: Runnable vs. Callable in Java Learn the difference between Runnable and Callable interfaces in Java. Read more → Guide… Continue Reading java-completablefuture

Performance of contains() in a HashSet vs ArrayList 1. Introduction In this quick guide, we’re going to discuss the performance of the contains() method available in java.util.HashSet and java.util.ArrayList. They are both collections for storing and manipulating objects. HashSet is a collection for storing unique elements. To learn more about the HashSet,… Continue Reading java-hashset-arraylist-contains-performance