Author: Shivam Rai

Difference between Comparable and Comparator

Reading Time: 6 minutes Hello readers today in this blog I’m going to explain the fundamental concept of Comparable and Comparator along with there differences. But before going to this topic we must have basic knowledge of Generics. So without explaining details theoretical concept let’s see through example, why we need Generics ? let’s see an example where we want to display the value of array: Why we need Continue Reading