How to Use partitioningBy Collector in Java Stream API

To use the partitioningBy Collector, you have to pass the Collectors.partitioningBy in the collect() method of…

Interview Question: Comparable vs Comparator

most asked interview question, Comparable vs Comparator. Both beginners and experienced persons get this question in…

How to use groupingBy Collector in Java Streams

Stream API's groupingBy is similar to GROUP BY of SQL since it groups and collects the…

Basic to Advance ways to iterate over a List in Java

how you can iterate over a List, be it ArrayList, LinkedList or any other. Basic loop…

Most Loved Interview Question: How HashMap Works in Java

An interview cant be complete without this question. HashMap working contains most of the concept we…

Stream API: The Hero Without a Cape

The Stream API, included in Java 8, is utilised for processing collections of objects. Stream API…