We will get java.lang.ClassCastException telling the object cannot be cast to java.lang.Comparable.
Engineering Full Stack Apps with Java and JavaScript
We will get java.lang.ClassCastException telling the object cannot be cast to java.lang.Comparable.