Tried with sample code to check default behaviour of equals() and hashCode() for record vs class, but it seems behave differently for record compare to class. H
in HashMap when I pass List of Objects as Key I get different results. List<NewClass> list1 = new ArrayList<>(); List<NewClass> list2 = new Ar