The Set-to-List Shuffle: A Hidden Performance Tax

I am sure if you are reading this blog post, you have used Java collections a lot, and of course, you must have used Java Sets. The most common scenario, or rather the default reflex, is to go for a…

I am sure if you are reading this blog post, you have used Java collections a lot, and of course, you must have used Java Sets. The most common scenario, or rather the default reflex, is to go for a…
Ever since the introduction of Java Streams, a lot of everyday loop code moved into stream pipelines. Streams are very readable and provide a rich set of operations for transforming data. And for large datasets, the performance difference between a…
What is the Java protected keyword? I’m sure you’ve been asked this before, and the most common answer is something like: protected members are visible only within the same package and to subclasses in other packages. That sounds right, but…